pub struct Address {
pub column: Column,
pub row: Row,
}Fields§
§column: Column§row: RowImplementations§
source§impl Address
impl Address
pub fn new(column_index: Index, row_index: Index) -> Self
sourcepub fn is_between(&self, a: &Self, b: &Self) -> bool
pub fn is_between(&self, a: &Self, b: &Self) -> bool
Given that a and b form a finite range, is self within it? i.e. is_between a and
b.
pub fn shift_down(&self, rows: Index) -> Self
pub fn shift_left(&self, columns: Index) -> Self
pub fn shift_right(&self, columns: Index) -> Self
pub fn shift_up(&self, rows: Index) -> Self
Trait Implementations§
source§impl Into<RangeOrCell> for Address
impl Into<RangeOrCell> for Address
source§fn into(self) -> RangeOrCell
fn into(self) -> RangeOrCell
Converts this type into the (usually inferred) input type.
impl Copy for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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)