aboutsummaryrefslogtreecommitdiff
path: root/src/list.rs
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-04-23 19:16:42 +0530
committerkrolxon <krolyxon@tutanota.com>2024-04-23 19:16:42 +0530
commit05c4b17bc078df9c5694e450b72aecbed9fc5216 (patch)
tree4058d28fa9dc0fc9ae212758bce0579b858ea213 /src/list.rs
parenta0582ead78fda02e4137a82e100963e88362f252 (diff)
damn
Diffstat (limited to 'src/list.rs')
-rwxr-xr-xsrc/list.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/list.rs b/src/list.rs
index 669d1af..74790a1 100755
--- a/src/list.rs
+++ b/src/list.rs
@@ -1,11 +1,13 @@
#[derive(Debug)]
-pub struct ContentList {
+pub struct ContentList<T> {
+ pub list: Vec<T>,
pub index: usize
}
-impl ContentList {
+impl<T> ContentList<T> {
pub fn new() -> Self {
ContentList {
+ list: Vec::new(),
index: 0
}
}