#[repr(transparent)]pub struct Columns(pub isize);
Expand description
A
columns
component of a Vector
Tuple Fields§
§0: isize
Trait Implementations§
source§impl AddAssign<Columns> for Column
impl AddAssign<Columns> for Column
source§fn add_assign(&mut self, rhs: Columns)
fn add_assign(&mut self, rhs: Columns)
Performs the
+=
operation. Read moresource§impl<T: Into<Columns>> AddAssign<T> for Columns
impl<T: Into<Columns>> AddAssign<T> for Columns
source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moresource§impl Component for Columns
impl Component for Columns
source§fn from_vector(vector: impl VectorLike) -> Self
fn from_vector(vector: impl VectorLike) -> Self
source§impl<T> MulAssign<T> for Columns
impl<T> MulAssign<T> for Columns
source§fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*=
operation. Read moresource§impl Ord for Columns
impl Ord for Columns
source§impl PartialEq for Columns
impl PartialEq for Columns
source§impl PartialOrd<isize> for Columns
impl PartialOrd<isize> for Columns
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 Columns
impl PartialOrd for Columns
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<Columns> for Column
impl SubAssign<Columns> for Column
source§fn sub_assign(&mut self, rhs: Columns)
fn sub_assign(&mut self, rhs: Columns)
Performs the
-=
operation. Read moresource§impl<T: Into<Columns>> SubAssign<T> for Columns
impl<T: Into<Columns>> SubAssign<T> for Columns
source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moresource§impl VectorLike for Columns
impl VectorLike for Columns
fn columns(&self) -> Columns
fn rows(&self) -> Rows
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 Columns
impl Eq for Columns
impl StructuralEq for Columns
impl StructuralPartialEq for Columns
Auto Trait Implementations§
impl RefUnwindSafe for Columns
impl Send for Columns
impl Sync for Columns
impl Unpin for Columns
impl UnwindSafe for Columns
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