[][src]Struct polyhorn_android::geometry::ByDirection

pub struct ByDirection<T> {
    pub horizontal: T,
    pub vertical: T,
}

This is a wrapper that contains a value of the given type for each direction (i.e. horizontal and vertical).

Fields

horizontal: T

This field contains a value of the given type for the horizontal dimension.

vertical: T

This field contains a value of the given type for the vertical dimension.

Implementations

impl<T> ByDirection<T> where
    T: Copy
[src]

pub fn with_both(value: T) -> ByDirection<T>[src]

Returns a new ByDirection with the given value of both horizontal and vertical directions.

Trait Implementations

impl<T> Clone for ByDirection<T> where
    T: Clone
[src]

impl<T> Copy for ByDirection<T> where
    T: Copy
[src]

impl<T> Debug for ByDirection<T> where
    T: Debug
[src]

impl<T> Default for ByDirection<T> where
    T: Default
[src]

impl<T> Eq for ByDirection<T> where
    T: Eq
[src]

impl<T> PartialEq<ByDirection<T>> for ByDirection<T> where
    T: PartialEq<T>, 
[src]

impl<T> StructuralEq for ByDirection<T>[src]

impl<T> StructuralPartialEq for ByDirection<T>[src]

impl<T> ToTokens for ByDirection<T> where
    T: ToTokens
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ByDirection<T> where
    T: RefUnwindSafe

impl<T> Send for ByDirection<T> where
    T: Send

impl<T> Sync for ByDirection<T> where
    T: Sync

impl<T> Unpin for ByDirection<T> where
    T: Unpin

impl<T> UnwindSafe for ByDirection<T> where
    T: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<'a, T> Desc<'a, T> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsDefault for T where
    T: PartialEq<T> + Default + Copy
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.