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§impl Debug for SnippetTabstop
impl Debug for SnippetTabstop
impl Eq for SnippetTabstop
Source§impl PartialEq for SnippetTabstop
impl PartialEq for SnippetTabstop
impl StructuralPartialEq for SnippetTabstop
Auto Trait Implementations§
impl Forget for SnippetTabstop
impl Freeze for SnippetTabstop
impl Move for SnippetTabstop
impl RefUnwindSafe for SnippetTabstop
impl Send for SnippetTabstopwhere
RawVecInner: Send,
impl Sync for SnippetTabstopwhere
RawVecInner: Sync,
impl Unpin for SnippetTabstop
impl UnsafeUnpin for SnippetTabstop
impl UnwindSafe for SnippetTabstopwhere
RawVecInner: UnwindSafe,
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