Enum iron_shapes::types::Angle[][src]

pub enum Angle {
    R0,
    R90,
    R180,
    R270,
}

Angle expressed as a multiple of 90 degrees.

Variants

R0

0 Degrees.

R90

90 Degrees.

R180

180 Degrees.

R270

270 Degrees.

Implementations

impl Angle[src]

pub fn as_int(&self) -> u32[src]

Describe the angle as a integer multiple of 90 degrees.

pub fn from_u32(a: u32) -> Self[src]

Convert an integer to an angle. The integer specifies the number of 90 degree rotations.

Trait Implementations

impl Add<Angle> for Angle[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Angle[src]

impl Copy for Angle[src]

impl Debug for Angle[src]

impl Default for Angle[src]

impl Eq for Angle[src]

impl Hash for Angle[src]

impl Neg for Angle[src]

type Output = Self

The resulting type after applying the - operator.

impl PartialEq<Angle> for Angle[src]

impl StructuralEq for Angle[src]

impl StructuralPartialEq for Angle[src]

Auto Trait Implementations

impl RefUnwindSafe for Angle

impl Send for Angle

impl Sync for Angle

impl Unpin for Angle

impl UnwindSafe for Angle

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> TextType for T where
    T: Clone + Eq + Debug + Hash
[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.