[−][src]Struct gridly::location::component::Column
Trait Implementations
impl Component for Column[src]
type Converse = Row
type Distance = Columns
fn from_location(loc: &Location) -> Self[src]
fn combine(self, other: Self::Converse) -> Location[src]
fn name() -> &'static str[src]
fn add(self, distance: Self::Distance) -> Self[src]
fn distance_from(self, origin: Self) -> Self::Distance[src]
fn value(self) -> isize[src]
fn distance_to(self, target: Self) -> Self::Distance[src]
Find the distance between two components, using this component as the origin
fn transpose(self) -> Self::Converse[src]
Convert a Row into a Column or vice versa
impl Copy for Column[src]
impl PartialEq<Column> for Column[src]
impl PartialOrd<Column> for Column[src]
fn partial_cmp(&self, other: &Column) -> Option<Ordering>[src]
fn lt(&self, other: &Column) -> bool[src]
fn le(&self, other: &Column) -> bool[src]
fn gt(&self, other: &Column) -> bool[src]
fn ge(&self, other: &Column) -> bool[src]
impl Ord for Column[src]
fn cmp(&self, other: &Column) -> Ordering[src]
default fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl Eq for Column[src]
impl Clone for Column[src]
fn clone(&self) -> Column[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for Column[src]
impl From<isize> for Column[src]
impl Hash for Column[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Add<Column> for Row[src]
type Output = Location
The resulting type after applying the + operator.
fn add(self, rhs: Column) -> Location[src]
impl Add<Row> for Column[src]
type Output = Location
The resulting type after applying the + operator.
fn add(self, rhs: Row) -> Location[src]
impl Add<Columns> for Column[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Columns) -> Self[src]
impl Sub<Columns> for Column[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Columns) -> Self[src]
impl Sub<Column> for Column[src]
The difference between two location components is the distance between them
type Output = Columns
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Columns[src]
impl AddAssign<Columns> for Column[src]
fn add_assign(&mut self, rhs: Columns)[src]
impl SubAssign<Columns> for Column[src]
fn sub_assign(&mut self, rhs: Columns)[src]
impl Debug for Column[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,