#[repr(transparent)]pub struct Rows(pub isize);
Expand description
A
rows
component of a Vector
Tuple Fields§
§0: isize
Trait Implementations§
source§impl AddAssign<Rows> for Row
impl AddAssign<Rows> for Row
source§fn add_assign(&mut self, rhs: Rows)
fn add_assign(&mut self, rhs: Rows)
Performs the
+=
operation. Read moresource§impl<T: Into<Rows>> AddAssign<T> for Rows
impl<T: Into<Rows>> AddAssign<T> for Rows
source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moresource§impl Component for Rows
impl Component for Rows
source§fn from_vector(vector: impl VectorLike) -> Self
fn from_vector(vector: impl VectorLike) -> Self
source§impl<T> MulAssign<T> for Rows
impl<T> MulAssign<T> for Rows
source§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*=
operation. Read moresource§impl Ord for Rows
impl Ord for Rows
source§impl PartialEq for Rows
impl PartialEq for Rows
source§impl PartialOrd<isize> for Rows
impl PartialOrd<isize> for Rows
source§fn le(&self, rhs: &isize) -> bool
fn le(&self, rhs: &isize) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for Rows
impl PartialOrd for Rows
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign<Rows> for Row
impl SubAssign<Rows> for Row
source§fn sub_assign(&mut self, rhs: Rows)
fn sub_assign(&mut self, rhs: Rows)
Performs the
-=
operation. Read moresource§impl<T: Into<Rows>> SubAssign<T> for Rows
impl<T: Into<Rows>> SubAssign<T> for Rows
source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moresource§impl VectorLike for Rows
impl VectorLike for Rows
fn rows(&self) -> Rows
fn columns(&self) -> Columns
fn as_vector(&self) -> Vector
source§fn manhattan_length(&self) -> isize
fn manhattan_length(&self) -> isize
Return the manhattan length of the vector. The manhattan length
of a vector is the sum of the absolute values of its components. Read more
source§fn checked_manhattan_length(&self) -> Option<isize>
fn checked_manhattan_length(&self) -> Option<isize>
Return the manhattan length of the vector, or
None
if there are
any overflows. Read moresource§fn anticlockwise(&self) -> Vector
fn anticlockwise(&self) -> Vector
Return a new vector, rotated 90 degrees counterclockwise. Read more
source§fn reverse(&self) -> Vector
fn reverse(&self) -> Vector
Return a new vector, facing the opposite direction of this one Read more
source§fn rotate(&self, rotation: Rotation) -> Vector
fn rotate(&self, rotation: Rotation) -> Vector
Return a new vector, rotated by a given rotation Read more
source§fn get_component<T: Component>(&self) -> T
fn get_component<T: Component>(&self) -> T
impl Copy for Rows
impl Eq for Rows
impl StructuralEq for Rows
impl StructuralPartialEq for Rows
Auto Trait Implementations§
impl RefUnwindSafe for Rows
impl Send for Rows
impl Sync for Rows
impl Unpin for Rows
impl UnwindSafe for Rows
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