pub struct Column {
pub absolute: bool,
pub x: Index,
}Fields§
§absolute: bool§x: IndexImplementations§
source§impl Column
impl Column
sourcepub fn is_between<T: AsRef<Self>>(&self, a: T, b: T) -> bool
pub fn is_between<T: AsRef<Self>>(&self, a: T, b: T) -> bool
Is self (inclusively) between the given a and b columns
sourcepub fn contains<T: AsRef<Self>>(&self, other: T) -> bool
pub fn contains<T: AsRef<Self>>(&self, other: T) -> bool
Does self contain the given column or address? Either it’s the same column or a point
within the column
pub fn new(x: Index) -> Self
sourcepub fn shift_left(&self, columns: Index) -> Self
pub fn shift_left(&self, columns: Index) -> Self
Shift the column left by the given amount.
sourcepub fn shift_right(&self, columns: Index) -> Self
pub fn shift_right(&self, columns: Index) -> Self
Shift the column right by the given amount.
Trait Implementations§
source§impl Into<RangeOrCell> for Column
impl Into<RangeOrCell> for Column
source§fn into(self) -> RangeOrCell
fn into(self) -> RangeOrCell
Converts this type into the (usually inferred) input type.
source§impl Ord for Column
impl Ord for Column
source§impl PartialOrd for Column
impl PartialOrd for Column
impl Copy for Column
impl Eq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)