Struct angle::Deg [] [src]

pub struct Deg<N>(pub N);

Trait Implementations

impl<N: Clone> Clone for Deg<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Copy> Copy for Deg<N>
[src]

impl<N: Debug> Debug for Deg<N>
[src]

Formats the value using the given formatter.

impl<N: Num + NumCast + Clone> Angle<N> for Deg<N>
[src]

impl<N: Num + NumCast + Clone + PartialOrd> Zero for Deg<N>
[src]

Returns the additive identity.

Returns true if self is equal to the additive identity.

impl<N: Num> Add for Deg<N>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<N: Num> Sub for Deg<N>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<N: Num> Mul for Deg<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: Float> Mul<N> for Deg<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: Num> Div for Deg<N>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N: Num> Div<N> for Deg<N>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N: Num + Neg<Output = N>> Neg for Deg<N>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<N: Num + NumCast + Clone + PartialOrd> PartialEq for Deg<N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Num + NumCast + Clone + PartialOrd> PartialOrd for Deg<N>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<N1: NumCast, N2: NumCast> Cast<Deg<N2>> for Deg<N1>
[src]

impl<N1: NumCast, N2: Float> Cast<Rad<N2>> for Deg<N1>
[src]

impl<N: FromPrimitive> FromPrimitive for Deg<N>
[src]

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

impl<N: ToPrimitive> ToPrimitive for Deg<N>
[src]

Converts the value of self to an i64.

Converts the value of self to an u64.

Converts the value of self to an isize.

Converts the value of self to an i8.

Converts the value of self to an i16.

Converts the value of self to an i32.

Converts the value of self to a usize.

Converts the value of self to an u8.

Converts the value of self to an u16.

Converts the value of self to an u32.

Converts the value of self to an f32.

Converts the value of self to an f64.

impl<N: Display> Display for Deg<N>
[src]

Formats the value using the given formatter. Read more