Struct a1_notation::Column
source · pub struct Column {
pub absolute: bool,
pub x: Index,
}
Fields§
§absolute: bool
§x: Index
Implementations§
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 PartialEq for Column
impl PartialEq for Column
source§impl PartialOrd for Column
impl PartialOrd for Column
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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