pub struct SnippetTabstop {
pub index: u32,
pub ranges: Vec<SnippetRange>,
}Expand description
A numbered tabstop within a snippet.
Notes:
- Tabstop indices start at
1.$0is the “final caret position” and is represented asSnippetTemplate::final_offset, not as a tabstop. - A tabstop may have multiple ranges (mirrored placeholders).
Fields§
§index: u32Tabstop index (1..).
ranges: Vec<SnippetRange>All placeholder ranges for this tabstop, in character offsets within the expanded text.
Trait Implementations§
Source§impl Clone for SnippetTabstop
impl Clone for SnippetTabstop
Source§fn clone(&self) -> SnippetTabstop
fn clone(&self) -> SnippetTabstop
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 SnippetTabstop
impl Debug for SnippetTabstop
impl Eq for SnippetTabstop
Source§impl PartialEq for SnippetTabstop
impl PartialEq for SnippetTabstop
Source§fn eq(&self, other: &SnippetTabstop) -> bool
fn eq(&self, other: &SnippetTabstop) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnippetTabstop
Auto Trait Implementations§
impl Freeze for SnippetTabstop
impl RefUnwindSafe for SnippetTabstop
impl Send for SnippetTabstop
impl Sync for SnippetTabstop
impl Unpin for SnippetTabstop
impl UnsafeUnpin for SnippetTabstop
impl UnwindSafe for SnippetTabstop
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