Struct rinmath::Deg[][src]

pub struct Deg<N>(pub N);

Trait Implementations

impl<N> Sub<Deg<N>> for Deg<N> where
    N: Sub<N, Output = N>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<N> Default for Deg<N> where
    N: Default
[src]

Returns the "default value" for a type. Read more

impl<N> Serialize for Deg<N> where
    N: Serialize
[src]

Serialize this value into the given Serde serializer. Read more

impl<N> Mul<N> for Deg<N> where
    N: Mul<N, Output = N>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<N> Mul<Deg<N>> for Deg<N> where
    N: Mul<N, Output = N>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'de, N> Deserialize<'de> for Deg<N> where
    N: Deserialize<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<N> DivAssign<N> for Deg<N> where
    N: DivAssign<N>, 
[src]

Performs the /= operation.

impl<N> DivAssign<Deg<N>> for Deg<N> where
    N: DivAssign<N>, 
[src]

Performs the /= operation.

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

Returns the additive identity.

Returns true if self is equal to the additive identity.

impl<N> Angle<N> for Deg<N> where
    N: Num
[src]

impl<N1, N2> From<Deg<N2>> for Rad<N1> where
    N1: From<N2>,
    N2: Clone + NumCast + Num
[src]

Performs the conversion.

impl<N1, N2> From<Rad<N2>> for Deg<N1> where
    N1: From<N2>,
    N2: Clone + NumCast + Num
[src]

Performs the conversion.

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

Formats the value using the given formatter. Read more

impl<N> FromPrimitive for Deg<N> where
    N: FromPrimitive
[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 an i128 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 an u128 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> AddAssign<Deg<N>> for Deg<N> where
    N: AddAssign<N>, 
[src]

Performs the += operation.

impl<N> Div<N> for Deg<N> where
    N: Div<N, Output = N>, 
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<N> Div<Deg<N>> for Deg<N> where
    N: Div<N, Output = N>, 
[src]

The resulting type after applying the / operator.

Performs the / operation.

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

Formats the value using the given formatter. Read more

impl<N> ToPrimitive for Deg<N> where
    N: ToPrimitive
[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 an i128. Read more

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 u128. Read more

Converts the value of self to an f32.

Converts the value of self to an f64.

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

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

This method tests for !=.

impl<N> MulAssign<Deg<N>> for Deg<N> where
    N: MulAssign<N>, 
[src]

Performs the *= operation.

impl<N> MulAssign<N> for Deg<N> where
    N: MulAssign<N>, 
[src]

Performs the *= operation.

impl<N> AngleCast for Deg<N> where
    N: NumCast
[src]

impl<N> SubAssign<Deg<N>> for Deg<N> where
    N: SubAssign<N>, 
[src]

Performs the -= operation.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N> Add<Deg<N>> for Deg<N> where
    N: Add<N, Output = N>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<N> PartialOrd<Deg<N>> for Deg<N> where
    N: PartialOrd<N> + Clone + NumCast + Num
[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<N> Neg for Deg<N> where
    N: Neg<Output = N>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

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

Auto Trait Implementations

impl<N> Send for Deg<N> where
    N: Send

impl<N> Sync for Deg<N> where
    N: Sync