pub struct TabstopGroup {
pub index: u32,
pub ranges: Vec<Range<usize>>,
pub has_default: bool,
pub is_choice: bool,
}Expand description
One group of mirror ranges sharing the same tabstop index.
<Tab> cycles between groups; edits within one group
ripple to every range in the same group.
Fields§
§index: u32§ranges: Vec<Range<usize>>Live byte ranges in the buffer (host re-bases these
after every edit). Initially copied from the
RenderedSnippet’s tabstop ranges + an offset that
places them at the snippet’s insertion site.
has_default: bool§is_choice: boolTrait Implementations§
Source§impl Clone for TabstopGroup
impl Clone for TabstopGroup
Source§fn clone(&self) -> TabstopGroup
fn clone(&self) -> TabstopGroup
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 TabstopGroup
impl Debug for TabstopGroup
impl Eq for TabstopGroup
Source§impl PartialEq for TabstopGroup
impl PartialEq for TabstopGroup
impl StructuralPartialEq for TabstopGroup
Auto Trait Implementations§
impl Freeze for TabstopGroup
impl RefUnwindSafe for TabstopGroup
impl Send for TabstopGroup
impl Sync for TabstopGroup
impl Unpin for TabstopGroup
impl UnsafeUnpin for TabstopGroup
impl UnwindSafe for TabstopGroup
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.