pub struct SnippetParam {
pub name: String,
pub default: Option<String>,
}Expand description
A parameter found in a snippet command template.
Fields§
§name: String§default: Option<String>Trait Implementations§
Source§impl Clone for SnippetParam
impl Clone for SnippetParam
Source§fn clone(&self) -> SnippetParam
fn clone(&self) -> SnippetParam
Returns a duplicate 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 SnippetParam
impl Debug for SnippetParam
Source§impl PartialEq for SnippetParam
impl PartialEq for SnippetParam
impl StructuralPartialEq for SnippetParam
Auto Trait Implementations§
impl Freeze for SnippetParam
impl RefUnwindSafe for SnippetParam
impl Send for SnippetParam
impl Sync for SnippetParam
impl Unpin for SnippetParam
impl UnsafeUnpin for SnippetParam
impl UnwindSafe for SnippetParam
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more