Struct angle::Rad [−][src]
pub struct Rad<N>(pub N);
Trait Implementations
impl<N: Num> Angle<N> for Rad<N>
[src]
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 as_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<'de, N> Deserialize<'de> for Rad<N> where
N: Deserialize<'de>,
[src]
impl<'de, N> Deserialize<'de> for Rad<N> where
N: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<N: FromPrimitive> FromPrimitive for Rad<N>
[src]
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]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl<N: PartialOrd + Num + Clone + NumCast> PartialOrd<Rad<N>> for Rad<N>
[src]
impl<N: PartialOrd + Num + Clone + NumCast> PartialOrd<Rad<N>> for Rad<N>
[src]impl<T: Copy, S: SubsetOf<T>> SubsetOf<Rad<T>> for Rad<S>
[src]
impl<T: Copy, S: SubsetOf<T>> SubsetOf<Rad<T>> for Rad<S>
[src]fn to_superset(&self) -> Rad<T>
[src]
fn from_superset_unchecked(element: &Rad<T>) -> Self
[src]
fn is_in_subset(element: &Rad<T>) -> bool
[src]
pub fn from_superset(element: &T) -> Option<Self>
impl<N: ToPrimitive> ToPrimitive for Rad<N>
[src]
impl<N: ToPrimitive> ToPrimitive for Rad<N>
[src]fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[src]
pub fn to_isize(&self) -> Option<isize>
[src]
pub fn to_i8(&self) -> Option<i8>
[src]
pub fn to_i16(&self) -> Option<i16>
[src]
pub fn to_i32(&self) -> Option<i32>
[src]
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_usize(&self) -> Option<usize>
[src]
pub fn to_u8(&self) -> Option<u8>
[src]
pub fn to_u16(&self) -> Option<u16>
[src]
pub fn to_u32(&self) -> Option<u32>
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
pub fn to_f32(&self) -> Option<f32>
[src]
pub fn to_f64(&self) -> Option<f64>
[src]
impl<N: Copy> Copy for Rad<N>
[src]
impl<N: Eq + PartialEq + Num + Clone + NumCast> Eq for Rad<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Rad<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Rad<N> where
N: Send,
N: Send,
impl<N> Sync for Rad<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Rad<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Rad<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedDiv<Right> for T where
T: Div<Right, Output = T> + DivAssign<Right>,
T: Div<Right, Output = T> + DivAssign<Right>,
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T> ClosedNeg for T where
T: Neg<Output = T>,
T: Neg<Output = T>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,