diff options
Diffstat (limited to 'Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode')
75 files changed, 0 insertions, 540 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 deleted file mode 100644 index cf49c23..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/File-open +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 63c3f82..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/None +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 4e3df10..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Result +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index d6de2c3..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Some +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index d01f2a6..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/String_from +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 2eb50ec..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/Vec-with_capacity +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index c30c1e8..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow +++ /dev/null @@ -1,5 +0,0 @@ -# -*- 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! deleted file mode 100644 index cfb0c7d..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/allow! +++ /dev/null @@ -1,5 +0,0 @@ -# -*- 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 deleted file mode 100644 index 404cf5c..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/arrow +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 063f82a..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/asref +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 deleted file mode 100644 index bbdc741..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 3de462f..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_eq +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 2c83c1a..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assert_ne +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index c410d3e..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/assignment +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 9ea6609..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/case +++ /dev/null @@ -1,5 +0,0 @@ -# -*- 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 deleted file mode 100644 index ce00c0a..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg +++ /dev/null @@ -1,4 +0,0 @@ -# -*- 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= deleted file mode 100644 index 588596f..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/cfg= +++ /dev/null @@ -1,4 +0,0 @@ -# -*- 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 deleted file mode 100644 index e352aad..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/const +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 21ddad4..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/debug_assert +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 7cf9c02..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref +++ /dev/null @@ -1,11 +0,0 @@ -# -*- 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 deleted file mode 100644 index 7ea39a0..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/deref_mut +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 deleted file mode 100644 index cf30bcc..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/derive +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index fd91031..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/disperror +++ /dev/null @@ -1,16 +0,0 @@ -# -*- 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 deleted file mode 100644 index 1764f67..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/display +++ /dev/null @@ -1,9 +0,0 @@ -# -*- 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 deleted file mode 100644 index 4f835c1..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/else +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 39650b0..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/elseif +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 25527be..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/enum +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 2e07306..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-args +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 1c2fd6c..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/env-var +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index d4c7d4b..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/eprintln +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index fc77089..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/error +++ /dev/null @@ -1,11 +0,0 @@ -# -*- 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 deleted file mode 100644 index a0dcd68..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index d79399e..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/extern-crate +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index a68dad0..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fn +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 7a7df24..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/for +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index f187c86..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/format +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index e04e7f0..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/from +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 deleted file mode 100644 index db95288..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/fromstr +++ /dev/null @@ -1,12 +0,0 @@ -# -*- 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 deleted file mode 100644 index 1981003..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 0e2571c..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/if-let +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index b2e9013..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ignore +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 3f15ec3..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/impl +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 3672fab..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/inline-if-else +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 4f026a9..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/iterator +++ /dev/null @@ -1,11 +0,0 @@ -# -*- 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 deleted file mode 100644 index eced267..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lambda +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index a9be8d7..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/let +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 8cd6c1e..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/letm +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 7c7d140..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/lifetime-static +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 9ec9d72..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/macro +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index d6092bf..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/main +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index aa4d1d2..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index c9762dd..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/match-ok +++ /dev/null @@ -1,9 +0,0 @@ -# -*- 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 deleted file mode 100644 index bc8bd61..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/mod +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index b7d0def..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/new +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 74f5384..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/panic +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 76c29fe..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/partial +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 deleted file mode 100644 index df122f2..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/println +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 617e3c3..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_fn +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 9227242..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/pub_mod +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 5804823..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/ret +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 8e66349..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/static +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index bce4ff2..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index bb0c2d7..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/struct_alias +++ /dev/null @@ -1,7 +0,0 @@ -# -*- 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 deleted file mode 100644 index 836b057..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/test +++ /dev/null @@ -1,9 +0,0 @@ -# -*- 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 deleted file mode 100644 index f0be987..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/testmod +++ /dev/null @@ -1,13 +0,0 @@ -# -*- 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 deleted file mode 100644 index 255e4a6..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/trait +++ /dev/null @@ -1,8 +0,0 @@ -# -*- 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 deleted file mode 100644 index 1b88ffb..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/type +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index bfd93aa..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/union +++ /dev/null @@ -1,7 +0,0 @@ -# -*- 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 deleted file mode 100644 index 6613f91..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index a8f5700..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-File +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index 339b4f6..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/use-HashMap +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index ea5fcc5..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/vec +++ /dev/null @@ -1,6 +0,0 @@ -# -*- 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 deleted file mode 100644 index acf5c5c..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn +++ /dev/null @@ -1,5 +0,0 @@ -# -*- 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! deleted file mode 100644 index 2f4885d..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/warn! +++ /dev/null @@ -1,5 +0,0 @@ -# -*- 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 deleted file mode 100644 index 4e36327..0000000 --- a/Emacs/.config/emacs/.config/yasnippet/snippets/rust-mode/while-let +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: while let PATTERN = EXPR { ... } -# key: whilel -# uuid: whilel -# -- -while let ${1:pattern} = ${2:expression} { - $0 -}
\ No newline at end of file |