Struct angle::Deg [−][src]
pub struct Deg<N>(pub N);
Trait Implementations
impl<N: Num> Angle<N> for Deg<N>
[src]
impl<N: Num> Angle<N> for Deg<N>
[src]fn to_rad(self) -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
fn to_deg(self) -> Deg<N>
[src]
fn pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
fn two_pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
fn half_pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
fn wrap(self) -> Deg<N> where
N: NumCast + Clone,
[src]
N: NumCast + Clone,
fn max(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd + NumCast + Clone,
[src]
N: PartialOrd + NumCast + Clone,
fn min(self, other: Deg<N>) -> Deg<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 + NumCast,
[src]
N: Float + NumCast,
fn cos(self) -> N where
N: Float + NumCast,
[src]
N: Float + NumCast,
fn tan(self) -> N where
N: Float + NumCast,
[src]
N: Float + NumCast,
fn sin_cos(self) -> (N, N) where
N: Float + NumCast,
[src]
N: Float + NumCast,
fn abs(self) -> Deg<N> where
N: Signed,
[src]
N: Signed,
impl<'de, N> Deserialize<'de> for Deg<N> where
N: Deserialize<'de>,
[src]
impl<'de, N> Deserialize<'de> for Deg<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 Deg<N>
[src]
impl<N: FromPrimitive> FromPrimitive for Deg<N>
[src]fn from_i64(n: i64) -> Option<Deg<N>>
[src]
fn from_u64(n: u64) -> Option<Deg<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<Deg<N>> for Deg<N>
[src]
impl<N: PartialOrd + Num + Clone + NumCast> PartialOrd<Deg<N>> for Deg<N>
[src]impl<T: Copy, S: SubsetOf<T>> SubsetOf<Deg<T>> for Deg<S>
[src]
impl<T: Copy, S: SubsetOf<T>> SubsetOf<Deg<T>> for Deg<S>
[src]fn to_superset(&self) -> Deg<T>
[src]
fn from_superset_unchecked(element: &Deg<T>) -> Self
[src]
fn is_in_subset(element: &Deg<T>) -> bool
[src]
pub fn from_superset(element: &T) -> Option<Self>
impl<N: ToPrimitive> ToPrimitive for Deg<N>
[src]
impl<N: ToPrimitive> ToPrimitive for Deg<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 Deg<N>
[src]
impl<N: Eq + PartialEq + Num + Clone + NumCast> Eq for Deg<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Deg<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Deg<N> where
N: Send,
N: Send,
impl<N> Sync for Deg<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Deg<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Deg<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>,