pub struct CellRect {
pub x: Range<usize>,
pub y: Range<usize>,
}Expand description
A rectangular group of cells in a Table.
Fields§
§x: Range<usize>X range.
y: Range<usize>Y range.
Implementations§
Source§impl CellRect
impl CellRect
pub fn new(x: Range<usize>, y: Range<usize>) -> Self
pub fn for_cell(cell: CellPos) -> Self
pub fn for_ranges((a_axis, a): (Axis2, Range<usize>), b: Range<usize>) -> Self
pub fn top_left(&self) -> CellPos
pub fn is_empty(&self) -> bool
pub fn map<F>(&self, f: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CellRect
impl RefUnwindSafe for CellRect
impl Send for CellRect
impl Sync for CellRect
impl Unpin for CellRect
impl UnsafeUnpin for CellRect
impl UnwindSafe for CellRect
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more