Enum coord_2d::Axis[][src]

pub enum Axis {
    X,
    Y,
}

Variants

X
Y

Implementations

impl Axis[src]

pub fn other(self) -> Self[src]

pub fn new_coord(self, this_axis: i32, other_axis: i32) -> Coord[src]

pub fn try_new_size(
    self,
    this_axis: u32,
    other_axis: u32
) -> Result<Size, DimensionTooLargeForSize>
[src]

pub fn new_size(self, this_axis: u32, other_axis: u32) -> Size[src]

Trait Implementations

impl Clone for Axis[src]

impl Copy for Axis[src]

impl Debug for Axis[src]

impl Eq for Axis[src]

impl Hash for Axis[src]

impl Ord for Axis[src]

impl PartialEq<Axis> for Axis[src]

impl PartialOrd<Axis> for Axis[src]

impl StructuralEq for Axis[src]

impl StructuralPartialEq for Axis[src]

Auto Trait Implementations

impl Send for Axis[src]

impl Sync for Axis[src]

impl Unpin for Axis[src]

Blanket Implementations

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

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

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

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

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

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.