aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode')
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow5
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow!5
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref10
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case5
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg4
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg=4
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref11
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut10
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror16
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display9
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error11
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from10
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr12
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator11
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok9
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial10
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias7
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test9
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod13
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait8
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union7
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec6
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn5
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn!5
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let8
75 files changed, 540 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open
new file mode 100644
index 0000000..cf49c23
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: File::open(...)
+# key: fo
+# uuid: fo
+# --
+File::open(${1:})`(if (eolp) ";" "")` \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None
new file mode 100644
index 0000000..63c3f82
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: None
+# key: no
+# uuid: no
+# --
+None \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result
new file mode 100644
index 0000000..4e3df10
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Result<T, E>
+# key: res
+# uuid: res
+# --
+Result<${1:T}, ${2:()}> \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some
new file mode 100644
index 0000000..d6de2c3
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Some(...)
+# key: so
+# uuid: so
+# --
+Some(${1:}) \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from
new file mode 100644
index 0000000..d01f2a6
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: String::from(...)
+# key: sf
+# uuid: sf
+# --
+String::from("$0") \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity
new file mode 100644
index 0000000..2eb50ec
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Vec::with_capacity(...)
+# key: vwc
+# uuid: vwc
+# --
+Vec::with_capacity(${1:n}) \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow
new file mode 100644
index 0000000..c30c1e8
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: #[allow(lint)]
+# key: allow
+# --
+#[allow(${1:lint})] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow! b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow!
new file mode 100644
index 0000000..cfb0c7d
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow!
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: #![allow(lint)]
+# key: allow!
+# --
+#![allow(${1:lint})] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow
new file mode 100644
index 0000000..404cf5c
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: x => y
+# key: =>
+# uuid: =>
+# --
+${1:_} => ${0:...} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref
new file mode 100644
index 0000000..063f82a
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: impl AsRef<Type> for Type
+# key: asref
+# uuid: asref
+# --
+impl std::convert::AsRef<${1:Type}> for ${2:Type} {
+ fn as_ref(&self) -> &$2 {
+ $0
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert
new file mode 100644
index 0000000..bbdc741
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assert!(...)
+# key: ass
+# uuid: ass
+# --
+assert!($0); \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq
new file mode 100644
index 0000000..3de462f
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assert_eq!(..., ...)
+# key: asse
+# uuid: asse
+# --
+assert_eq!(${1:}, $2); \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne
new file mode 100644
index 0000000..2c83c1a
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assert_ne!(..., ...)
+# key: assn
+# uuid: assn
+# --
+assert_ne!(${1:}, $2); \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment
new file mode 100644
index 0000000..c410d3e
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assignment
+# key: =
+# uuid: =
+# --
+${1:x} = ${2:value}`(if (eolp) ";" "")`$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case
new file mode 100644
index 0000000..9ea6609
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: pattern => expression,
+# key: case
+# --
+${1:pattern} => ${2:expression}, \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg
new file mode 100644
index 0000000..ce00c0a
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+# name: #[cfg(...)]
+# --
+#[cfg($0)] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg= b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg=
new file mode 100644
index 0000000..588596f
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg=
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+# name: #[cfg(option = "value")]
+# --
+#[cfg(${1:option} = "${2:value}")] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const
new file mode 100644
index 0000000..e352aad
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: const VAR = ...
+# key: const
+# uuid: const
+# --
+const ${1:VARNAME}${2: ${3:i32}} = ${4:value}; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert
new file mode 100644
index 0000000..21ddad4
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: debug_assert!(...)
+# key: dass
+# uuid: dass
+# --
+debug_assert!($0); \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref
new file mode 100644
index 0000000..7cf9c02
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: impl Deref for Type
+# key: deref
+# uuid: deref
+# --
+impl std::ops::Deref for ${1:Type} {
+ type Target = ${2:Type};
+ fn deref(&self) -> &Self::Target {
+ &self.$0
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut
new file mode 100644
index 0000000..7ea39a0
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: impl DerefMut for Type
+# key: deref_mut
+# uuid: deref_mut
+# --
+impl std::ops::DerefMut for ${1:Type} {
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.$0
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive
new file mode 100644
index 0000000..cf30bcc
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: #[derive(...)]
+# key: der
+# uuid: der
+# --
+#[derive($1)] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror
new file mode 100644
index 0000000..fd91031
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror
@@ -0,0 +1,16 @@
+# -*- mode: snippet -*-
+# name: Display and Error Traits
+# key: disperror
+# uuid: disperror
+# --
+impl Display for $1 {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "{}", $0)
+ }
+}
+
+impl std::error::Error for ${1:Type} {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ None
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display
new file mode 100644
index 0000000..1764f67
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: impl Display for Type { fn fmt (...) }
+# key: display
+# --
+impl Display for ${1:Type} {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "$0")
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else
new file mode 100644
index 0000000..4f835c1
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: else { ... }
+# key: else
+# uuid: else
+# --
+else {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif
new file mode 100644
index 0000000..39650b0
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: else if ... { ... }
+# key: elif
+# uuid: elif
+# --
+else if ${1:true} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum
new file mode 100644
index 0000000..25527be
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: enum
+# key: enum
+# uuid: enum
+# --
+enum ${1:EnumName} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args
new file mode 100644
index 0000000..2e07306
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: env::args()
+# key: argv
+# uuid: argv
+# --
+env::args() \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var
new file mode 100644
index 0000000..1c2fd6c
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: env::var(...)
+# key: envv
+# uuid: envv
+# --
+env::var("$1") \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln
new file mode 100644
index 0000000..d4c7d4b
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: eprintln!(...)
+# key: ep
+# uuid: ep
+# --
+eprintln!("$1", ${2:});$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error
new file mode 100644
index 0000000..fc77089
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: impl Error for Type { fn source(...) }
+# key: error
+# uuid: error
+# --
+impl std::error::Error for ${1:Type} {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ $0
+ None
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern
new file mode 100644
index 0000000..a0dcd68
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: extern "C" { ... }
+# key: extc
+# uuid: extc
+# --
+extern "C" {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate
new file mode 100644
index 0000000..d79399e
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: extern crate ...
+# key: ec
+# uuid: ec
+# --
+extern crate ${1:name}; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn
new file mode 100644
index 0000000..a68dad0
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: function
+# key: fn
+# uuid: fn
+# --
+fn ${1:function_name}($2) ${3:-> ${4:i32} }{
+ $0
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for
new file mode 100644
index 0000000..7a7df24
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: for in
+# key: for
+# uuid: for
+# --
+for ${1:x} in ${2:items} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format
new file mode 100644
index 0000000..f187c86
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: format!(..., ...)
+# key: f
+# uuid: f
+# --
+format!("$1", ${2:}) \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from
new file mode 100644
index 0000000..e04e7f0
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: impl From<From> for Type { fn from(...) }
+# key: from
+# --
+impl From<${1:From}> for ${2:Type} {
+ fn from(source: $1) -> Self {
+ $0
+ Self { }
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr
new file mode 100644
index 0000000..db95288
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr
@@ -0,0 +1,12 @@
+# -*- mode: snippet -*-
+# name: impl FromStr for Type { fn from_str(...) }
+# key: fromstr
+# --
+impl FromStr for ${1:Type} {
+ type Err = ${2:Error};
+
+ fn from_str(s: &str) -> Result<Self, Self::Err> {
+
+ Ok(Self{})
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if
new file mode 100644
index 0000000..1981003
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: if ... { ... }
+# key: if
+# uuid: if
+# --
+if ${1:x} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let
new file mode 100644
index 0000000..0e2571c
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: if let ...
+# key: ifl
+# uuid: ifl
+# --
+if let ${1:Some(${2:x})} = ${3:var} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore
new file mode 100644
index 0000000..b2e9013
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: #[ignore]
+# key: ign
+# uuid: ign
+# --
+#[ignore] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl
new file mode 100644
index 0000000..3f15ec3
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: impl
+# --
+impl ${1:name}${2: for ${3:Type}} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else
new file mode 100644
index 0000000..3672fab
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: inline if-else
+# key: ife
+# uuid: ife
+# --
+if ${1:x} {${2:}}${3: else {$4}}$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator
new file mode 100644
index 0000000..4f026a9
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: impl Iterator for Type
+# key: iterator
+# uuid: iterator
+# --
+impl Iterator for ${1:Type} {
+ type Item = ${2:Type};
+ fn next(&mut self) -> Option<Self::Item> {
+ $0
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda
new file mode 100644
index 0000000..eced267
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: anonymous function
+# key: fn
+# uuid: fn
+# --
+|${1:x}|${2: -> i32} `(if (> (doom-snippets-count-lines %) 1) "{ " "")``(doom-snippets-format "%n%s%n")`$0`(if (> (doom-snippets-count-lines %) 1) " }" "")` \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let
new file mode 100644
index 0000000..a9be8d7
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: let
+# key: let
+# uuid: let
+# --
+let ${1:var} = $0`(if (eolp) ";" "")` \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm
new file mode 100644
index 0000000..8cd6c1e
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: let mut
+# key: letm
+# uuid: letm
+# --
+let mut ${1:var} = $0`(if (eolp) ";" "")` \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static
new file mode 100644
index 0000000..7c7d140
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: 'static
+# key: 's
+# uuid: 's
+# --
+'static \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro
new file mode 100644
index 0000000..9ec9d72
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: macro_rules! name { (..) => (..); }
+# key: macro
+# uuid: macro
+# --
+macro_rules! ${1:name} {
+ ($2) => ($3);
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main
new file mode 100644
index 0000000..d6092bf
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: main
+# key: main
+# uuid: main
+# --
+fn main() {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match
new file mode 100644
index 0000000..aa4d1d2
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: match
+# uuid: match
+# key: match
+# --
+match ${1:x} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok
new file mode 100644
index 0000000..c9762dd
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: match n { Ok(x), Err(y) }
+# key: match?
+# uuid: match?
+# --
+match ${1:x} {
+ Ok(${2:var}) => $3,
+ Err(${4:error}) => $5
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod
new file mode 100644
index 0000000..bc8bd61
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: mod
+# key: mod
+# uuid: mod
+# --
+mod ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new
new file mode 100644
index 0000000..b7d0def
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Type::new(...)
+# key: new
+# uuid: new
+# --
+${1:Vec}::new(${2:})`(if (eolp) ";" "")` \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic
new file mode 100644
index 0000000..74f5384
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: panic!(...)
+# key: pa
+# uuid: pa
+# --
+panic!("$1", ${2:});$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial
new file mode 100644
index 0000000..76c29fe
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: impl PartialEq for Type
+# key: partial
+# uuid: partial
+# --
+impl PartialEq for ${1:Type} {
+ fn eq(&self, other: &Self) -> bool {
+ $0
+ }
+}
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println
new file mode 100644
index 0000000..df122f2
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: println!(...)
+# key: p
+# uuid: p
+# --
+println!("$1", ${2:});$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn
new file mode 100644
index 0000000..617e3c3
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: public function
+# key: pfn
+# uuid: pfn
+# --
+pub fn ${1:function_name}($2) ${3:-> ${4:i32} }{
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod
new file mode 100644
index 0000000..9227242
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: pub mod
+# key: pmod
+# uuid: pmod
+# --
+pub mod ${1:name} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret
new file mode 100644
index 0000000..5804823
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: return
+# key: ret
+# uuid: ret
+# --
+return ${1:};$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static
new file mode 100644
index 0000000..8e66349
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: static VAR = ...
+# key: static
+# uuid: static
+# --
+static ${1:VARNAME}${2:: ${3:i32}} = ${4:value}; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct
new file mode 100644
index 0000000..bce4ff2
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: struct
+# uuid: struct
+# key: struct
+# --
+struct ${1:Name} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias
new file mode 100644
index 0000000..bb0c2d7
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: struct
+# uuid: struct_alias
+# key: st
+# type: command
+# --
+(doom-snippets-expand :uuid "struct") \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test
new file mode 100644
index 0000000..836b057
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: test function
+# key: test
+# uuid: test
+# --
+#[test]
+fn ${1:test_name}() {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod
new file mode 100644
index 0000000..f0be987
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod
@@ -0,0 +1,13 @@
+# -*- mode: snippet -*-
+# name: test module
+# key: testmod
+# --
+#[cfg(test)]
+mod ${1:tests} {
+ use super::*;
+
+ #[test]
+ fn ${2:test_name}() {
+ $0
+ }
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait
new file mode 100644
index 0000000..255e4a6
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: trait ... { ... }
+# uuid: trait
+# key: trait
+# --
+trait ${1:Name} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type
new file mode 100644
index 0000000..1b88ffb
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: type Name = ...;
+# key: type
+# uuid: type
+# --
+type ${1:TypeName} = ${2:i32}; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union
new file mode 100644
index 0000000..bfd93aa
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: union Type { ... }
+# key: union
+# --
+union ${1:Type} {
+ $0
+} \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use
new file mode 100644
index 0000000..6613f91
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: use ...
+# key: use
+# uuid: use
+# --
+use ${1:std::${2:io}};$0 \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File
new file mode 100644
index 0000000..a8f5700
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: use std::fs::File
+# key: ufile
+# uuid: ufile
+# --
+use std::fs::File; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap
new file mode 100644
index 0000000..339b4f6
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: use std::collections::HashMap
+# key: uhashmap
+# uuid: uhashmap
+# --
+use std::collections::HashMap; \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec
new file mode 100644
index 0000000..ea5fcc5
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: vec![...]
+# key: v
+# uuid: v
+# --
+vec![${1:}] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn
new file mode 100644
index 0000000..acf5c5c
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: #[warn(lint)]
+# key: warn
+# --
+#[warn(${1:lint})] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn! b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn!
new file mode 100644
index 0000000..2f4885d
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn!
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: #![warn(lint)]
+# key: warn!
+# --
+#![warn(${1:lint})] \ No newline at end of file
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let
new file mode 100644
index 0000000..4e36327
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: while let PATTERN = EXPR { ... }
+# key: whilel
+# uuid: whilel
+# --
+while let ${1:pattern} = ${2:expression} {
+ $0
+} \ No newline at end of file