pub struct Row {
pub absolute: bool,
pub y: Index,
}Fields§
§absolute: boolIf the row was was specified with a $.
y: IndexThe 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 PartialOrd for Row
impl PartialOrd for Row
impl 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
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)