Struct angle::Rad [] [src]

pub struct Rad<N>(pub N);

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

Formats the value using the given formatter.

impl<N: Default> Default for Rad<N>
[src]

[src]

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

impl<N: Num> Angle<N> for Rad<N>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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

[src]

Returns the additive identity.

[src]

Returns true if self is equal to the additive identity.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<N: AddAssign<N>> AddAssign for Rad<N>
[src]

[src]

Performs the += operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<N: SubAssign<N>> SubAssign for Rad<N>
[src]

[src]

Performs the -= operation.

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

The resulting type after applying the * operator.

[src]

Performs the * operation.

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

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<N: MulAssign<N>> MulAssign for Rad<N>
[src]

[src]

Performs the *= operation.

impl<N: MulAssign<N>> MulAssign<N> for Rad<N>
[src]

[src]

Performs the *= operation.

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

The resulting type after applying the / operator.

[src]

Performs the / operation.

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

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<N: DivAssign<N>> DivAssign for Rad<N>
[src]

[src]

Performs the /= operation.

impl<N: DivAssign<N>> DivAssign<N> for Rad<N>
[src]

[src]

Performs the /= operation.

impl<N: Neg<Output = N>> Neg for Rad<N>
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

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

[src]

Performs the conversion.

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

[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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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 Rad<N>
[src]

[src]

Converts the value of self to an i64.

[src]

Converts the value of self to an u64.

[src]

Converts the value of self to an isize.

[src]

Converts the value of self to an i8.

[src]

Converts the value of self to an i16.

[src]

Converts the value of self to an i32.

[src]

Converts the value of self to a usize.

[src]

Converts the value of self to an u8.

[src]

Converts the value of self to an u16.

[src]

Converts the value of self to an u32.

[src]

Converts the value of self to an f32.

[src]

Converts the value of self to an f64.

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

[src]

Formats the value using the given formatter. Read more

impl<N: NumCast> AngleCast for Rad<N>
[src]

[src]