Skip to content

Instantly share code, notes, and snippets.

View lilBunnyRabbit's full-sized avatar
🐰

Andraž Mesarič-Sirec lilBunnyRabbit

🐰
View GitHub Profile
@lilBunnyRabbit
lilBunnyRabbit / graphql.json
Last active February 7, 2023 21:37
VSCode Snippets
{
"create": {
"prefix": "create",
"body": [
"${1|mutation,query|} ${TM_FILENAME_BASE}($3) {",
"\t$2($3) {$0}",
"}"
]
}
}
pub struct CircularBuffer<T> {
capacity: usize,
buffer: Vec<T>,
position: usize,
is_full: bool,
}
impl<T> CircularBuffer<T>
where
T: std::fmt::Display + Clone,