pub struct CheckedRect { /* private fields */ }Expand description
A validated inclusive worksheet rectangle.
Implementations§
Source§impl CheckedRect
impl CheckedRect
Sourcepub fn new(
min_row: u32,
max_row: u32,
min_col: u32,
max_col: u32,
limits: TraversalLimits,
) -> Result<Self>
pub fn new( min_row: u32, max_row: u32, min_col: u32, max_col: u32, limits: TraversalLimits, ) -> Result<Self>
Validates coordinates and checked dimensions against finite limits.
Sourcepub fn new_sparse(
min_row: u32,
max_row: u32,
min_col: u32,
max_col: u32,
limits: TraversalLimits,
) -> Result<Self>
pub fn new_sparse( min_row: u32, max_row: u32, min_col: u32, max_col: u32, limits: TraversalLimits, ) -> Result<Self>
Validates sparse bounds without charging the unvisited rectangle area.
pub const fn min_row(self) -> u32
pub const fn max_row(self) -> u32
pub const fn min_col(self) -> u32
pub const fn max_col(self) -> u32
pub const fn row_count(self) -> u64
pub const fn column_count(self) -> u64
pub const fn cell_count(self) -> u64
Trait Implementations§
Source§impl Clone for CheckedRect
impl Clone for CheckedRect
Source§fn clone(&self) -> CheckedRect
fn clone(&self) -> CheckedRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CheckedRect
Source§impl Debug for CheckedRect
impl Debug for CheckedRect
impl Eq for CheckedRect
Source§impl PartialEq for CheckedRect
impl PartialEq for CheckedRect
impl StructuralPartialEq for CheckedRect
Auto Trait Implementations§
impl Freeze for CheckedRect
impl RefUnwindSafe for CheckedRect
impl Send for CheckedRect
impl Sync for CheckedRect
impl Unpin for CheckedRect
impl UnsafeUnpin for CheckedRect
impl UnwindSafe for CheckedRect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.