#[repr(transparent)]pub struct Column(pub isize);
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 Component for Column
impl Component for Column
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<Columns>) -> Self
fn add_distance(self, distance: impl Into<Columns>) -> 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) -> Columns
fn distance_from(self, origin: Self) -> Columns
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 Column
impl Ord for Column
source§impl PartialEq for Column
impl PartialEq for Column
source§impl PartialOrd for Column
impl PartialOrd for Column
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 Sub for Column
impl Sub for Column
The difference between two location components is the distance between them
source§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 moreimpl Copy for Column
impl Eq for Column
impl StructuralEq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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