[−][src]Struct gridly::location::component::Row
Trait Implementations
impl Component for Row
[src]
type Converse = Column
type Distance = Rows
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 Row
[src]
impl PartialEq<Row> for Row
[src]
impl PartialOrd<Row> for Row
[src]
fn partial_cmp(&self, other: &Row) -> Option<Ordering>
[src]
fn lt(&self, other: &Row) -> bool
[src]
fn le(&self, other: &Row) -> bool
[src]
fn gt(&self, other: &Row) -> bool
[src]
fn ge(&self, other: &Row) -> bool
[src]
impl Ord for Row
[src]
fn cmp(&self, other: &Row) -> Ordering
[src]
default fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self
1.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 Row
[src]
impl Clone for Row
[src]
fn clone(&self) -> Row
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Row
[src]
impl From<isize> for Row
[src]
impl Hash for Row
[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<Rows> for Row
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Rows) -> Self
[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 Sub<Rows> for Row
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Rows) -> Self
[src]
impl Sub<Row> for Row
[src]
The difference between two location components is the distance between them
type Output = Rows
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Rows
[src]
impl AddAssign<Rows> for Row
[src]
fn add_assign(&mut self, rhs: Rows)
[src]
impl SubAssign<Rows> for Row
[src]
fn sub_assign(&mut self, rhs: Rows)
[src]
impl Debug for Row
[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>,