pub struct SnippetIndex { /* private fields */ }Implementations§
Source§impl SnippetIndex
impl SnippetIndex
pub fn insert(&mut self, info: SnippetInfo)
pub fn get(&self, name: &str) -> Option<&SnippetInfo>
pub fn list(&self) -> Vec<&SnippetInfo>
Trait Implementations§
Source§impl Clone for SnippetIndex
impl Clone for SnippetIndex
Source§fn clone(&self) -> SnippetIndex
fn clone(&self) -> SnippetIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SnippetIndex
impl Debug for SnippetIndex
Source§impl Default for SnippetIndex
impl Default for SnippetIndex
Source§fn default() -> SnippetIndex
fn default() -> SnippetIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnippetIndex
impl RefUnwindSafe for SnippetIndex
impl Send for SnippetIndex
impl Sync for SnippetIndex
impl Unpin for SnippetIndex
impl UnsafeUnpin for SnippetIndex
impl UnwindSafe for SnippetIndex
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