#[repr(transparent)]pub struct Row(pub isize);
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 Component for Row
impl Component for Row
source§fn from_location<L: LocationLike>(location: L) -> Self
fn from_location<L: LocationLike>(location: L) -> Self
source§fn name() -> &'static str
fn name() -> &'static str
Return the lowercase name of this component type– “row” or “column”.
Intended for debug printing, error messages, etc. Read more
source§fn add_distance(self, distance: impl Into<Rows>) -> Self
fn add_distance(self, distance: impl Into<Rows>) -> Self
Add a distance to this component. This method is provided because we can’t
require a trait bound on
Add
for Component
, but in general just using
+
is preferable. Read moresource§fn distance_from(self, origin: Self) -> Rows
fn distance_from(self, origin: Self) -> Rows
Find the distance between two components, using the other component as the origin Read more
source§fn distance_to(self, target: Self) -> Self::Distance
fn distance_to(self, target: Self) -> Self::Distance
Find the distance between two components, using this component as the origin Read more
source§impl Ord for Row
impl Ord for Row
source§impl PartialOrd for Row
impl PartialOrd for Row
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 moreimpl Copy for Row
impl Eq for Row
impl StructuralEq for Row
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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