pub struct Snippet {
pub text: String,
pub stops: Vec<TabStop>,
}Expand description
A parsed snippet: its text with variables resolved and the tab stops in it.
Fields§
§text: String§stops: Vec<TabStop>Tab stops by index, ascending, with $0 last. Ranges are char offsets into text.
Implementations§
Trait Implementations§
impl Eq for Snippet
impl StructuralPartialEq for Snippet
Auto Trait Implementations§
impl Forget for Snippet
impl Freeze for Snippet
impl Move for Snippet
impl RefUnwindSafe for Snippet
impl Send for Snippet
impl Sync for Snippet
impl Unpin for Snippet
impl UnsafeUnpin 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