pub struct Snippet { /* private fields */ }Implementations§
Source§impl Snippet
impl Snippet
pub fn new(name: &str, description: &str, content: &str) -> Snippet
pub fn get_name(&self) -> &str
pub fn set_name(&mut self, name: &str)
pub fn get_description(&self) -> &str
pub fn set_description(&mut self, description: &str)
pub fn get_content(&self) -> &str
pub fn set_content(&mut self, content: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snippet
impl RefUnwindSafe for Snippet
impl Send for Snippet
impl Sync for Snippet
impl Unpin for Snippet
impl UnwindSafe for Snippet
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