pub struct TabStop {
pub index: u16,
pub range: Range<u32>,
pub choices: Vec<String>,
}Expand description
One tab stop within a Snippet.
Fields§
§index: u161-based placeholder index; u16::MAX marks the final stop ($0).
range: Range<u32>Byte range within Snippet::text covering the inserted default (empty
for $N / $0).
choices: Vec<String>Non-empty for ${N|a,b|}; choices[0] is the inserted default.
Implementations§
Trait Implementations§
impl Eq for TabStop
impl StructuralPartialEq for TabStop
Auto Trait Implementations§
impl Freeze for TabStop
impl RefUnwindSafe for TabStop
impl Send for TabStop
impl Sync for TabStop
impl Unpin for TabStop
impl UnsafeUnpin for TabStop
impl UnwindSafe for TabStop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.