pub enum OldColumnOffsetRef {
Current,
Column(OldColumnIndex),
Trailing,
}Expand description
Legacy column offset-line selector.
Offset APIs operate on column boundary lines. Concrete column indices select
the start line for that column, while OldColumnOffsetRef::Trailing selects
the right-most line after the final column.
Variants§
Current
Use the current legacy column boundary.
Column(OldColumnIndex)
Use the start boundary for a concrete legacy column.
Trailing
Use the right-most boundary after the final legacy column.
Implementations§
Trait Implementations§
Source§impl Clone for OldColumnOffsetRef
impl Clone for OldColumnOffsetRef
Source§fn clone(&self) -> OldColumnOffsetRef
fn clone(&self) -> OldColumnOffsetRef
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 OldColumnOffsetRef
impl Debug for OldColumnOffsetRef
Source§impl Default for OldColumnOffsetRef
impl Default for OldColumnOffsetRef
Source§fn default() -> OldColumnOffsetRef
fn default() -> OldColumnOffsetRef
Returns the “default value” for a type. Read more
Source§impl From<OldColumnIndex> for OldColumnOffsetRef
impl From<OldColumnIndex> for OldColumnOffsetRef
Source§fn from(index: OldColumnIndex) -> Self
fn from(index: OldColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<usize> for OldColumnOffsetRef
impl From<usize> for OldColumnOffsetRef
Source§impl Hash for OldColumnOffsetRef
impl Hash for OldColumnOffsetRef
Source§impl PartialEq for OldColumnOffsetRef
impl PartialEq for OldColumnOffsetRef
Source§fn eq(&self, other: &OldColumnOffsetRef) -> bool
fn eq(&self, other: &OldColumnOffsetRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OldColumnOffsetRef
impl Eq for OldColumnOffsetRef
impl StructuralPartialEq for OldColumnOffsetRef
Auto Trait Implementations§
impl Freeze for OldColumnOffsetRef
impl RefUnwindSafe for OldColumnOffsetRef
impl Send for OldColumnOffsetRef
impl Sync for OldColumnOffsetRef
impl Unpin for OldColumnOffsetRef
impl UnsafeUnpin for OldColumnOffsetRef
impl UnwindSafe for OldColumnOffsetRef
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