pub struct SnippetTemplate {
pub text: String,
pub tabstops: Vec<SnippetTabstop>,
pub final_offset: usize,
}Expand description
An expanded snippet template.
Fields§
§text: StringExpanded text to insert into the document.
tabstops: Vec<SnippetTabstop>Ordered tabstops (ascending index, excluding $0).
final_offset: usizeFinal caret position (character offset) within text.
Trait Implementations§
Source§impl Clone for SnippetTemplate
impl Clone for SnippetTemplate
Source§fn clone(&self) -> SnippetTemplate
fn clone(&self) -> SnippetTemplate
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 SnippetTemplate
impl Debug for SnippetTemplate
impl Eq for SnippetTemplate
Source§impl PartialEq for SnippetTemplate
impl PartialEq for SnippetTemplate
Source§fn eq(&self, other: &SnippetTemplate) -> bool
fn eq(&self, other: &SnippetTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnippetTemplate
Auto Trait Implementations§
impl Freeze for SnippetTemplate
impl RefUnwindSafe for SnippetTemplate
impl Send for SnippetTemplate
impl Sync for SnippetTemplate
impl Unpin for SnippetTemplate
impl UnsafeUnpin for SnippetTemplate
impl UnwindSafe for SnippetTemplate
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