pub struct SnippetMap {
pub map: BTreeMap<String, LinkedSnippet>,
}
Fields§
§map: BTreeMap<String, LinkedSnippet>
Implementations§
Trait Implementations§
Source§impl Clone for SnippetMap
impl Clone for SnippetMap
Source§fn clone(&self) -> SnippetMap
fn clone(&self) -> SnippetMap
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SnippetMap
impl Debug for SnippetMap
Source§impl Default for SnippetMap
impl Default for SnippetMap
Source§fn default() -> SnippetMap
fn default() -> SnippetMap
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnippetMap
impl<'de> Deserialize<'de> for SnippetMap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extend<(String, LinkedSnippet)> for SnippetMap
impl Extend<(String, LinkedSnippet)> for SnippetMap
Source§fn extend<T: IntoIterator<Item = (String, LinkedSnippet)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (String, LinkedSnippet)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<(String, LinkedSnippet)> for SnippetMap
impl FromIterator<(String, LinkedSnippet)> for SnippetMap
Source§fn from_iter<T: IntoIterator<Item = (String, LinkedSnippet)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (String, LinkedSnippet)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl IntoIterator for SnippetMap
impl IntoIterator for SnippetMap
Source§type Item = (String, LinkedSnippet)
type Item = (String, LinkedSnippet)
The type of the elements being iterated over.
Source§type IntoIter = <BTreeMap<String, LinkedSnippet> as IntoIterator>::IntoIter
type IntoIter = <BTreeMap<String, LinkedSnippet> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for SnippetMap
impl RefUnwindSafe for SnippetMap
impl Send for SnippetMap
impl Sync for SnippetMap
impl Unpin for SnippetMap
impl UnwindSafe for SnippetMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more