Struct a1_notation::Row
source · pub struct Row {
pub absolute: bool,
pub y: Index,
}
Fields§
§absolute: bool
If the row was was specified with a $
.
y: Index
The zero-based index of the cell. For A1 it’s 0, A2 it’s 1, A3 is 2, etc..
Implementations§
source§impl Row
impl Row
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 row or address? Either it’s the same row or a point within
the row
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
rows
sourcepub fn shift_down(&self, rows: Index) -> Self
pub fn shift_down(&self, rows: Index) -> Self
Shift the row down by the given amount.
Trait Implementations§
source§impl FromStr for Row
impl FromStr for Row
Parses just the “1” part of an “A1” reference. Which would be a number, possibly prefixed
with $
. Any other input that is supplied will throw an error.
source§impl Into<RangeOrCell> for Row
impl Into<RangeOrCell> for Row
source§fn into(self) -> RangeOrCell
fn into(self) -> RangeOrCell
Converts this type into the (usually inferred) input type.
source§impl Ord for Row
impl Ord for Row
source§impl PartialEq for Row
impl PartialEq for Row
source§impl PartialOrd for Row
impl PartialOrd for Row
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 Row
impl Eq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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