pub struct SnippetMeta {
pub name: String,
pub prefix: String,
pub description: Option<String>,
}Expand description
Display-only metadata for a snippet – the bits the completion popup row needs without pulling in the body.
Fields§
§name: String§prefix: String§description: Option<String>Trait Implementations§
Source§impl Clone for SnippetMeta
impl Clone for SnippetMeta
Source§fn clone(&self) -> SnippetMeta
fn clone(&self) -> SnippetMeta
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 moreAuto Trait Implementations§
impl Freeze for SnippetMeta
impl RefUnwindSafe for SnippetMeta
impl Send for SnippetMeta
impl Sync for SnippetMeta
impl Unpin for SnippetMeta
impl UnsafeUnpin for SnippetMeta
impl UnwindSafe for SnippetMeta
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