pub struct MatrixRange {
pub start: MatrixCoordinates,
pub end: MatrixCoordinates,
}
Expand description
2D range in a matrix.
Fields§
§start: MatrixCoordinates
Starting coordinates of the range (inclusive).
end: MatrixCoordinates
Ending coordinates of the range (exclusive).
Implementations§
Trait Implementations§
Source§impl Add<MatrixCoordinates> for MatrixRange
impl Add<MatrixCoordinates> for MatrixRange
Source§type Output = MatrixRange
type Output = MatrixRange
The resulting type after applying the
+
operator.Source§impl AddAssign<MatrixCoordinates> for MatrixRange
impl AddAssign<MatrixCoordinates> for MatrixRange
Source§fn add_assign(&mut self, rhs: MatrixCoordinates)
fn add_assign(&mut self, rhs: MatrixCoordinates)
Performs the
+=
operation. Read moreSource§impl Clone for MatrixRange
impl Clone for MatrixRange
Source§fn clone(&self) -> MatrixRange
fn clone(&self) -> MatrixRange
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 From<(MatrixCoordinates, MatrixCoordinates)> for MatrixRange
impl From<(MatrixCoordinates, MatrixCoordinates)> for MatrixRange
Source§fn from(value: (MatrixCoordinates, MatrixCoordinates)) -> Self
fn from(value: (MatrixCoordinates, MatrixCoordinates)) -> Self
Converts to this type from the input type.
Source§impl From<MatrixDimensions> for MatrixRange
impl From<MatrixDimensions> for MatrixRange
Source§fn from(value: MatrixDimensions) -> Self
fn from(value: MatrixDimensions) -> Self
Converts to this type from the input type.
Source§impl From<MatrixRange> for MatrixLocation
impl From<MatrixRange> for MatrixLocation
Source§fn from(value: MatrixRange) -> Self
fn from(value: MatrixRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MatrixRange
impl PartialEq for MatrixRange
Source§impl Serialize for MatrixRange
impl Serialize for MatrixRange
Source§impl Sub<MatrixCoordinates> for MatrixRange
impl Sub<MatrixCoordinates> for MatrixRange
Source§type Output = MatrixRange
type Output = MatrixRange
The resulting type after applying the
-
operator.Source§impl SubAssign<MatrixCoordinates> for MatrixRange
impl SubAssign<MatrixCoordinates> for MatrixRange
Source§fn sub_assign(&mut self, rhs: MatrixCoordinates)
fn sub_assign(&mut self, rhs: MatrixCoordinates)
Performs the
-=
operation. Read moreimpl 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§impl<D, T> Contains2D<D> for T
impl<D, T> Contains2D<D> for T
Source§impl<T> Contains2D<MatrixCoordinates> for Twhere
T: Domain2D,
impl<T> Contains2D<MatrixCoordinates> for Twhere
T: Domain2D,
Source§impl<D> Dimensions2D for Dwhere
D: Domain2D,
impl<D> Dimensions2D for Dwhere
D: Domain2D,
Source§fn dimensions(&self) -> MatrixDimensions
fn dimensions(&self) -> MatrixDimensions
Dimensions of the output as a dimensions object.