[][src]Struct angle::Rad

pub struct Rad<N>(pub N);

Trait Implementations

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

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

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

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

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

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

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

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

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

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

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

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

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

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

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

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

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

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

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

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

type Output = Rad<N>

The resulting type after applying the / operator.

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

type Output = Rad<N>

The resulting type after applying the / operator.

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

type Output = Rad<N>

The resulting type after applying the + operator.

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

type Output = Rad<N>

The resulting type after applying the - operator.

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

type Output = Rad<N>

The resulting type after applying the * operator.

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

type Output = Rad<N>

The resulting type after applying the * operator.

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

type Output = Rad<N>

The resulting type after applying the - operator.

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

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

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

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

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

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

impl<N> Hash for Rad<N> where
    N: Hash
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

fn to_isize(&self) -> Option<isize>[src]

Converts the value of self to an isize.

fn to_i8(&self) -> Option<i8>[src]

Converts the value of self to an i8.

fn to_i16(&self) -> Option<i16>[src]

Converts the value of self to an i16.

fn to_i32(&self) -> Option<i32>[src]

Converts the value of self to an i32.

fn to_i128(&self) -> Option<i128>[src]

Converts the value of self to an i128. Read more

fn to_usize(&self) -> Option<usize>[src]

Converts the value of self to a usize.

fn to_u8(&self) -> Option<u8>[src]

Converts the value of self to an u8.

fn to_u16(&self) -> Option<u16>[src]

Converts the value of self to an u16.

fn to_u32(&self) -> Option<u32>[src]

Converts the value of self to an u32.

fn to_u128(&self) -> Option<u128>[src]

Converts the value of self to an u128. Read more

fn to_f32(&self) -> Option<f32>[src]

Converts the value of self to an f32.

fn to_f64(&self) -> Option<f64>[src]

Converts the value of self to an f64.

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

fn from_isize(n: isize) -> Option<Self>[src]

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

fn from_i8(n: i8) -> Option<Self>[src]

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

fn from_i16(n: i16) -> Option<Self>[src]

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

fn from_i32(n: i32) -> Option<Self>[src]

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

fn from_i128(n: i128) -> Option<Self>[src]

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

fn from_usize(n: usize) -> Option<Self>[src]

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

fn from_u8(n: u8) -> Option<Self>[src]

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

fn from_u16(n: u16) -> Option<Self>[src]

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

fn from_u32(n: u32) -> Option<Self>[src]

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

fn from_u128(n: u128) -> Option<Self>[src]

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

fn from_f32(n: f32) -> Option<Self>[src]

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

fn from_f64(n: f64) -> Option<Self>[src]

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

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

fn zero() -> Rad<N>[src]

Returns the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

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

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

Auto Trait Implementations

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

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

impl<N> Unpin for Rad<N> where
    N: Unpin

impl<N> RefUnwindSafe for Rad<N> where
    N: RefUnwindSafe

impl<N> UnwindSafe for Rad<N> where
    N: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]