Struct ratio_matrix::MatrixRange
source · pub struct MatrixRange {
pub rows: (usize, usize),
pub cols: (usize, usize),
}
Expand description
2D range in a matrix.
Fields§
§rows: (usize, usize)
Row range bounds (lower inclusive, upper exclusive).
cols: (usize, usize)
Column range bounds (lower inclusive, upper exclusive).
Implementations§
Trait Implementations§
source§impl Clone for MatrixRange
impl Clone for MatrixRange
source§fn clone(&self) -> MatrixRange
fn clone(&self) -> MatrixRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatrixRange
impl Debug for MatrixRange
source§impl Default for MatrixRange
impl Default for MatrixRange
source§fn default() -> MatrixRange
fn default() -> MatrixRange
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MatrixRangewhere
MatrixRange: Default,
impl<'de> Deserialize<'de> for MatrixRangewhere
MatrixRange: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Domain2D for MatrixRange
impl Domain2D for MatrixRange
source§fn range(&self) -> MatrixRange
fn range(&self) -> MatrixRange
The area spanned by this domain.
source§fn start(&self) -> MatrixCoordinates
fn start(&self) -> MatrixCoordinates
Starting coordinate of this domain (inclusive).
source§fn end(&self) -> MatrixCoordinates
fn end(&self) -> MatrixCoordinates
Ending coordinate of this domain (exclusive).
source§impl PartialEq for MatrixRange
impl PartialEq for MatrixRange
source§impl Serialize for MatrixRange
impl Serialize for MatrixRange
impl Copy for MatrixRange
impl StructuralPartialEq for MatrixRange
Auto Trait Implementations§
impl Freeze for MatrixRange
impl RefUnwindSafe for MatrixRange
impl Send for MatrixRange
impl Sync for MatrixRange
impl Unpin for MatrixRange
impl UnwindSafe for MatrixRange
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)