Struct rinmath::Deg [−][src]
pub struct Deg<N>(pub N);
Trait Implementations
impl<N> Sub<Deg<N>> for Deg<N> where
N: Sub<N, Output = N>,
[src]
impl<N> Sub<Deg<N>> for Deg<N> where
N: Sub<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the -
operator.
fn sub(self, other: Deg<N>) -> Deg<N>
[src]
fn sub(self, other: Deg<N>) -> Deg<N>
Performs the -
operation.
impl<N> Default for Deg<N> where
N: Default,
[src]
impl<N> Default for Deg<N> where
N: Default,
impl<N> Serialize for Deg<N> where
N: Serialize,
[src]
impl<N> Serialize for Deg<N> where
N: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<N> Mul<N> for Deg<N> where
N: Mul<N, Output = N>,
[src]
impl<N> Mul<N> for Deg<N> where
N: Mul<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the *
operator.
fn mul(self, other: N) -> Deg<N>
[src]
fn mul(self, other: N) -> Deg<N>
Performs the *
operation.
impl<N> Mul<Deg<N>> for Deg<N> where
N: Mul<N, Output = N>,
[src]
impl<N> Mul<Deg<N>> for Deg<N> where
N: Mul<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the *
operator.
fn mul(self, other: Deg<N>) -> Deg<N>
[src]
fn mul(self, other: Deg<N>) -> Deg<N>
Performs the *
operation.
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>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Deg<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Deg<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<N> DivAssign<N> for Deg<N> where
N: DivAssign<N>,
[src]
impl<N> DivAssign<N> for Deg<N> where
N: DivAssign<N>,
fn div_assign(&mut self, other: N)
[src]
fn div_assign(&mut self, other: N)
Performs the /=
operation.
impl<N> DivAssign<Deg<N>> for Deg<N> where
N: DivAssign<N>,
[src]
impl<N> DivAssign<Deg<N>> for Deg<N> where
N: DivAssign<N>,
fn div_assign(&mut self, other: Deg<N>)
[src]
fn div_assign(&mut self, other: Deg<N>)
Performs the /=
operation.
impl<N> Zero for Deg<N> where
N: Clone + Zero + NumCast + Num,
[src]
impl<N> Zero for Deg<N> where
N: Clone + Zero + NumCast + Num,
fn zero() -> Deg<N>
[src]
fn zero() -> Deg<N>
Returns the additive identity.
fn is_zero(&self) -> bool
[src]
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl<N> Angle<N> for Deg<N> where
N: Num,
[src]
impl<N> Angle<N> for Deg<N> where
N: Num,
fn to_rad(self) -> Rad<N> where
N: NumCast,
[src]
fn to_rad(self) -> Rad<N> where
N: NumCast,
fn to_deg(self) -> Deg<N>
[src]
fn to_deg(self) -> Deg<N>
fn pi() -> Deg<N> where
N: NumCast,
[src]
fn pi() -> Deg<N> where
N: NumCast,
fn two_pi() -> Deg<N> where
N: NumCast,
[src]
fn two_pi() -> Deg<N> where
N: NumCast,
fn half_pi() -> Deg<N> where
N: NumCast,
[src]
fn half_pi() -> Deg<N> where
N: NumCast,
fn wrap(self) -> Deg<N> where
N: NumCast + Clone,
[src]
fn wrap(self) -> Deg<N> where
N: NumCast + Clone,
fn max(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
fn max(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
fn min(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
fn min(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
fn value(self) -> N
[src]
fn value(self) -> N
fn sin(self) -> N where
N: Float + NumCast,
[src]
fn sin(self) -> N where
N: Float + NumCast,
fn cos(self) -> N where
N: Float + NumCast,
[src]
fn cos(self) -> N where
N: Float + NumCast,
fn tan(self) -> N where
N: Float + NumCast,
[src]
fn tan(self) -> N where
N: Float + NumCast,
fn sin_cos(self) -> (N, N) where
N: Float + NumCast,
[src]
fn sin_cos(self) -> (N, N) where
N: Float + NumCast,
fn abs(self) -> Deg<N> where
N: Signed,
[src]
fn abs(self) -> Deg<N> where
N: Signed,
impl<N1, N2> From<Deg<N2>> for Rad<N1> where
N1: From<N2>,
N2: Clone + NumCast + Num,
[src]
impl<N1, N2> From<Deg<N2>> for Rad<N1> where
N1: From<N2>,
N2: Clone + NumCast + Num,
impl<N1, N2> From<Rad<N2>> for Deg<N1> where
N1: From<N2>,
N2: Clone + NumCast + Num,
[src]
impl<N1, N2> From<Rad<N2>> for Deg<N1> where
N1: From<N2>,
N2: Clone + NumCast + Num,
impl<N> Display for Deg<N> where
N: Display,
[src]
impl<N> Display for Deg<N> where
N: Display,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<N> FromPrimitive for Deg<N> where
N: FromPrimitive,
[src]
impl<N> FromPrimitive for Deg<N> where
N: FromPrimitive,
fn from_i64(n: i64) -> Option<Deg<N>>
[src]
fn from_i64(n: i64) -> Option<Deg<N>>
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
fn from_u64(n: u64) -> Option<Deg<N>>
[src]
fn from_u64(n: u64) -> Option<Deg<N>>
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
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
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
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
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
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
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
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
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
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
Convert an i128
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
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
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
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
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
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
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
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
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
Convert an u128
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
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
fn from_f64(n: f64) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
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> AddAssign<Deg<N>> for Deg<N> where
N: AddAssign<N>,
[src]
impl<N> AddAssign<Deg<N>> for Deg<N> where
N: AddAssign<N>,
fn add_assign(&mut self, other: Deg<N>)
[src]
fn add_assign(&mut self, other: Deg<N>)
Performs the +=
operation.
impl<N> Div<N> for Deg<N> where
N: Div<N, Output = N>,
[src]
impl<N> Div<N> for Deg<N> where
N: Div<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the /
operator.
fn div(self, other: N) -> Deg<N>
[src]
fn div(self, other: N) -> Deg<N>
Performs the /
operation.
impl<N> Div<Deg<N>> for Deg<N> where
N: Div<N, Output = N>,
[src]
impl<N> Div<Deg<N>> for Deg<N> where
N: Div<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the /
operator.
fn div(self, other: Deg<N>) -> Deg<N>
[src]
fn div(self, other: Deg<N>) -> Deg<N>
Performs the /
operation.
impl<N> Debug for Deg<N> where
N: Debug,
[src]
impl<N> Debug for Deg<N> where
N: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<N> ToPrimitive for Deg<N> where
N: ToPrimitive,
[src]
impl<N> ToPrimitive for Deg<N> where
N: ToPrimitive,
fn to_i64(&self) -> Option<i64>
[src]
fn to_i64(&self) -> Option<i64>
Converts the value of self
to an i64
.
fn to_u64(&self) -> Option<u64>
[src]
fn to_u64(&self) -> Option<u64>
Converts the value of self
to an u64
.
fn to_isize(&self) -> Option<isize>
[src]
fn to_isize(&self) -> Option<isize>
Converts the value of self
to an isize
.
fn to_i8(&self) -> Option<i8>
[src]
fn to_i8(&self) -> Option<i8>
Converts the value of self
to an i8
.
fn to_i16(&self) -> Option<i16>
[src]
fn to_i16(&self) -> Option<i16>
Converts the value of self
to an i16
.
fn to_i32(&self) -> Option<i32>
[src]
fn to_i32(&self) -> Option<i32>
Converts the value of self
to an i32
.
fn to_i128(&self) -> Option<i128>
[src]
fn to_i128(&self) -> Option<i128>
Converts the value of self
to an i128
. Read more
fn to_usize(&self) -> Option<usize>
[src]
fn to_usize(&self) -> Option<usize>
Converts the value of self
to a usize
.
fn to_u8(&self) -> Option<u8>
[src]
fn to_u8(&self) -> Option<u8>
Converts the value of self
to an u8
.
fn to_u16(&self) -> Option<u16>
[src]
fn to_u16(&self) -> Option<u16>
Converts the value of self
to an u16
.
fn to_u32(&self) -> Option<u32>
[src]
fn to_u32(&self) -> Option<u32>
Converts the value of self
to an u32
.
fn to_u128(&self) -> Option<u128>
[src]
fn to_u128(&self) -> Option<u128>
Converts the value of self
to an u128
. Read more
fn to_f32(&self) -> Option<f32>
[src]
fn to_f32(&self) -> Option<f32>
Converts the value of self
to an f32
.
fn to_f64(&self) -> Option<f64>
[src]
fn to_f64(&self) -> Option<f64>
Converts the value of self
to an f64
.
impl<N> PartialEq<Deg<N>> for Deg<N> where
N: PartialEq<N> + Clone + NumCast + Num,
[src]
impl<N> PartialEq<Deg<N>> for Deg<N> where
N: PartialEq<N> + Clone + NumCast + Num,
fn eq(&self, other: &Deg<N>) -> bool
[src]
fn eq(&self, other: &Deg<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<N> MulAssign<Deg<N>> for Deg<N> where
N: MulAssign<N>,
[src]
impl<N> MulAssign<Deg<N>> for Deg<N> where
N: MulAssign<N>,
fn mul_assign(&mut self, other: Deg<N>)
[src]
fn mul_assign(&mut self, other: Deg<N>)
Performs the *=
operation.
impl<N> MulAssign<N> for Deg<N> where
N: MulAssign<N>,
[src]
impl<N> MulAssign<N> for Deg<N> where
N: MulAssign<N>,
fn mul_assign(&mut self, other: N)
[src]
fn mul_assign(&mut self, other: N)
Performs the *=
operation.
impl<N> AngleCast for Deg<N> where
N: NumCast,
[src]
impl<N> AngleCast for Deg<N> where
N: NumCast,
impl<N> SubAssign<Deg<N>> for Deg<N> where
N: SubAssign<N>,
[src]
impl<N> SubAssign<Deg<N>> for Deg<N> where
N: SubAssign<N>,
fn sub_assign(&mut self, other: Deg<N>)
[src]
fn sub_assign(&mut self, other: Deg<N>)
Performs the -=
operation.
impl<N> Clone for Deg<N> where
N: Clone,
[src]
impl<N> Clone for Deg<N> where
N: Clone,
fn clone(&self) -> Deg<N>
[src]
fn clone(&self) -> Deg<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<N> Add<Deg<N>> for Deg<N> where
N: Add<N, Output = N>,
[src]
impl<N> Add<Deg<N>> for Deg<N> where
N: Add<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the +
operator.
fn add(self, other: Deg<N>) -> Deg<N>
[src]
fn add(self, other: Deg<N>) -> Deg<N>
Performs the +
operation.
impl<N> PartialOrd<Deg<N>> for Deg<N> where
N: PartialOrd<N> + Clone + NumCast + Num,
[src]
impl<N> PartialOrd<Deg<N>> for Deg<N> where
N: PartialOrd<N> + Clone + NumCast + Num,
fn partial_cmp(&self, other: &Deg<N>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Deg<N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<N> Neg for Deg<N> where
N: Neg<Output = N>,
[src]
impl<N> Neg for Deg<N> where
N: Neg<Output = N>,
type Output = Deg<N>
The resulting type after applying the -
operator.
fn neg(self) -> Deg<N>
[src]
fn neg(self) -> Deg<N>
Performs the unary -
operation.
impl<N> Copy for Deg<N> where
N: Copy,
[src]
impl<N> Copy for Deg<N> where
N: Copy,