commit 69162b5b5ac5337dda07457274c08264a7565e1a Author: Nilstrieb Date: Fri Aug 6 18:44:38 2021 +0200 inital commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..4f5a145 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/../../../../../../../:\Users\nilsh\CLionProjects\rust\datastructures\.idea/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/datastructures.iml b/.idea/datastructures.iml new file mode 100644 index 0000000..c254557 --- /dev/null +++ b/.idea/datastructures.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..461fec0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..51c4ca4 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..541b29c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "datastructures" +version = "0.1.0" +authors = ["Nilstrieb "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..acb82e2 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +pub mod linked_list; diff --git a/src/linked_list.rs b/src/linked_list.rs new file mode 100644 index 0000000..8a93027 --- /dev/null +++ b/src/linked_list.rs @@ -0,0 +1,9 @@ +pub struct LinkedList {} + +pub struct Node { + value: T, + next: *const Node, + prev: *const Node, +} + +