[−][src]Struct angle::Rad
Trait Implementations
impl<N: Num> Angle<N> for Rad<N>
[src]
fn to_rad(self) -> Rad<N>
[src]
fn to_deg(self) -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
fn pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
fn two_pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
fn half_pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
fn wrap(self) -> Rad<N> where
N: NumCast + Clone,
[src]
N: NumCast + Clone,
fn max(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd + NumCast + Clone,
[src]
N: PartialOrd + NumCast + Clone,
fn min(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd + NumCast + Clone,
[src]
N: PartialOrd + NumCast + Clone,
fn value(self) -> N
[src]
fn sin(self) -> N where
N: Float,
[src]
N: Float,
fn cos(self) -> N where
N: Float,
[src]
N: Float,
fn tan(self) -> N where
N: Float,
[src]
N: Float,
fn sin_cos(self) -> (N, N) where
N: Float,
[src]
N: Float,
fn abs(self) -> Rad<N> where
N: Signed,
[src]
N: Signed,
impl<N: NumCast> AngleCast for Rad<N>
[src]
impl<N: Clone> Clone for Rad<N>
[src]
fn clone(&self) -> 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 cmp(&self, other: &Rad<N>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
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]
fn partial_cmp(&self, other: &Rad<N>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
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<N: PartialEq + Num + Clone + NumCast> PartialEq<Rad<N>> for Rad<N>
[src]
fn eq(&self, other: &Rad<N>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.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.
fn div(self, other: Rad<N>) -> Rad<N>
[src]
impl<N: Div<N, Output = N>> Div<N> for Rad<N>
[src]
type Output = Rad<N>
The resulting type after applying the /
operator.
fn div(self, other: N) -> Rad<N>
[src]
impl<N: Add<N, Output = N>> Add<Rad<N>> for Rad<N>
[src]
type Output = Rad<N>
The resulting type after applying the +
operator.
fn add(self, other: Rad<N>) -> Rad<N>
[src]
impl<N: Sub<N, Output = N>> Sub<Rad<N>> for Rad<N>
[src]
type Output = Rad<N>
The resulting type after applying the -
operator.
fn sub(self, other: Rad<N>) -> Rad<N>
[src]
impl<N: Mul<N, Output = N>> Mul<Rad<N>> for Rad<N>
[src]
type Output = Rad<N>
The resulting type after applying the *
operator.
fn mul(self, other: Rad<N>) -> Rad<N>
[src]
impl<N: Mul<N, Output = N>> Mul<N> for Rad<N>
[src]
type Output = Rad<N>
The resulting type after applying the *
operator.
fn mul(self, other: N) -> Rad<N>
[src]
impl<N: Neg<Output = N>> Neg for Rad<N>
[src]
impl<N: AddAssign<N>> AddAssign<Rad<N>> for Rad<N>
[src]
fn add_assign(&mut self, other: Rad<N>)
[src]
impl<N: SubAssign<N>> SubAssign<Rad<N>> for Rad<N>
[src]
fn sub_assign(&mut self, other: Rad<N>)
[src]
impl<N: MulAssign<N>> MulAssign<Rad<N>> for Rad<N>
[src]
fn mul_assign(&mut self, other: Rad<N>)
[src]
impl<N: MulAssign<N>> MulAssign<N> for Rad<N>
[src]
fn mul_assign(&mut self, other: N)
[src]
impl<N: DivAssign<N>> DivAssign<Rad<N>> for Rad<N>
[src]
fn div_assign(&mut self, other: Rad<N>)
[src]
impl<N: DivAssign<N>> DivAssign<N> for Rad<N>
[src]
fn div_assign(&mut self, other: N)
[src]
impl<N> Hash for Rad<N> where
N: Hash,
[src]
N: Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<N: ToPrimitive> ToPrimitive for Rad<N>
[src]
fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[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_i64(n: i64) -> Option<Rad<N>>
[src]
fn from_u64(n: u64) -> Option<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 is_zero(&self) -> bool
[src]
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]
N: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, N> Deserialize<'de> for Rad<N> where
N: Deserialize<'de>,
[src]
N: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<N> Sync for Rad<N> where
N: Sync,
N: Sync,
impl<N> Send for Rad<N> where
N: Send,
N: Send,
impl<N> Unpin for Rad<N> where
N: Unpin,
N: Unpin,
impl<N> RefUnwindSafe for Rad<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> UnwindSafe for Rad<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,