[−][src]Struct color::Deg
Trait Implementations
impl<N> Add<Deg<N>> for Deg<N> where
N: Add<N, Output = N>,
[src]
N: Add<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the +
operator.
pub fn add(self, other: Deg<N>) -> Deg<N>
[src]
impl<N> AddAssign<Deg<N>> for Deg<N> where
N: AddAssign<N>,
[src]
N: AddAssign<N>,
pub fn add_assign(&mut self, other: Deg<N>)
[src]
impl<N> Angle<N> for Deg<N> where
N: Num,
[src]
N: Num,
pub fn to_rad(self) -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
pub fn to_deg(self) -> Deg<N>
[src]
pub fn pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
pub fn two_pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
pub fn half_pi() -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
pub fn wrap(self) -> Deg<N> where
N: NumCast + Clone,
[src]
N: NumCast + Clone,
pub fn max(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
N: PartialOrd<N> + NumCast + Clone,
pub fn min(self, other: Deg<N>) -> Deg<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
N: PartialOrd<N> + NumCast + Clone,
pub fn value(self) -> N
[src]
pub fn sin(self) -> N where
N: Float + NumCast,
[src]
N: Float + NumCast,
pub fn cos(self) -> N where
N: Float + NumCast,
[src]
N: Float + NumCast,
pub fn tan(self) -> N where
N: Float + NumCast,
[src]
N: Float + NumCast,
pub fn sin_cos(self) -> (N, N) where
N: Float + NumCast,
[src]
N: Float + NumCast,
pub fn abs(self) -> Deg<N> where
N: Signed,
[src]
N: Signed,
impl<N> AngleCast for Deg<N> where
N: NumCast,
[src]
N: NumCast,
impl<N> Clone for Deg<N> where
N: Clone,
[src]
N: Clone,
impl<N> Copy for Deg<N> where
N: Copy,
[src]
N: Copy,
impl<N> Debug for Deg<N> where
N: Debug,
[src]
N: Debug,
impl<N> Default for Deg<N> where
N: Default,
[src]
N: Default,
impl<'de, N> Deserialize<'de> for Deg<N> where
N: Deserialize<'de>,
[src]
N: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Deg<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Deg<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<N> Display for Deg<N> where
N: Display,
[src]
N: Display,
impl<N> Div<Deg<N>> for Deg<N> where
N: Div<N, Output = N>,
[src]
N: Div<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the /
operator.
pub fn div(self, other: Deg<N>) -> Deg<N>
[src]
impl<N> Div<N> for Deg<N> where
N: Div<N, Output = N>,
[src]
N: Div<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the /
operator.
pub fn div(self, other: N) -> Deg<N>
[src]
impl<N> DivAssign<Deg<N>> for Deg<N> where
N: DivAssign<N>,
[src]
N: DivAssign<N>,
pub fn div_assign(&mut self, other: Deg<N>)
[src]
impl<N> DivAssign<N> for Deg<N> where
N: DivAssign<N>,
[src]
N: DivAssign<N>,
pub fn div_assign(&mut self, other: N)
[src]
impl<N> Eq for Deg<N> where
N: Clone + PartialEq<N> + Eq + NumCast + Num,
[src]
N: Clone + PartialEq<N> + Eq + NumCast + Num,
impl<N1, N2> From<Rad<N2>> for Deg<N1> where
N1: From<N2>,
N2: Clone + NumCast + Num,
[src]
N1: From<N2>,
N2: Clone + NumCast + Num,
impl<N> FromPrimitive for Deg<N> where
N: FromPrimitive,
[src]
N: FromPrimitive,
pub fn from_i64(n: i64) -> Option<Deg<N>>
[src]
pub 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> Hash for Deg<N> where
N: Hash,
[src]
N: Hash,
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<N> Mul<Deg<N>> for Deg<N> where
N: Mul<N, Output = N>,
[src]
N: Mul<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the *
operator.
pub fn mul(self, other: Deg<N>) -> Deg<N>
[src]
impl<N> Mul<N> for Deg<N> where
N: Mul<N, Output = N>,
[src]
N: Mul<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the *
operator.
pub fn mul(self, other: N) -> Deg<N>
[src]
impl<N> MulAssign<Deg<N>> for Deg<N> where
N: MulAssign<N>,
[src]
N: MulAssign<N>,
pub fn mul_assign(&mut self, other: Deg<N>)
[src]
impl<N> MulAssign<N> for Deg<N> where
N: MulAssign<N>,
[src]
N: MulAssign<N>,
pub fn mul_assign(&mut self, other: N)
[src]
impl<N> Neg for Deg<N> where
N: Neg<Output = N>,
[src]
N: Neg<Output = N>,
type Output = Deg<N>
The resulting type after applying the -
operator.
pub fn neg(self) -> Deg<N>
[src]
impl<N> Ord for Deg<N> where
N: Clone + PartialEq<N> + Ord + NumCast + Num,
[src]
N: Clone + PartialEq<N> + Ord + NumCast + Num,
pub fn cmp(&self, other: &Deg<N>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<N> PartialEq<Deg<N>> for Deg<N> where
N: Clone + PartialEq<N> + NumCast + Num,
[src]
N: Clone + PartialEq<N> + NumCast + Num,
pub fn eq(&self, other: &Deg<N>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<N> PartialOrd<Deg<N>> for Deg<N> where
N: Clone + PartialOrd<N> + NumCast + Num,
[src]
N: Clone + PartialOrd<N> + NumCast + Num,
pub fn partial_cmp(&self, other: &Deg<N>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<N> Serialize for Deg<N> where
N: Serialize,
[src]
N: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<N> Sub<Deg<N>> for Deg<N> where
N: Sub<N, Output = N>,
[src]
N: Sub<N, Output = N>,
type Output = Deg<N>
The resulting type after applying the -
operator.
pub fn sub(self, other: Deg<N>) -> Deg<N>
[src]
impl<N> SubAssign<Deg<N>> for Deg<N> where
N: SubAssign<N>,
[src]
N: SubAssign<N>,
pub fn sub_assign(&mut self, other: Deg<N>)
[src]
impl<N> ToPrimitive for Deg<N> where
N: ToPrimitive,
[src]
N: ToPrimitive,
pub fn to_i64(&self) -> Option<i64>
[src]
pub 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> Zero for Deg<N> where
N: Clone + NumCast + Zero + Num,
[src]
N: Clone + NumCast + Zero + Num,
Auto Trait Implementations
impl<N> RefUnwindSafe for Deg<N> where
N: RefUnwindSafe,
[src]
N: RefUnwindSafe,
impl<N> Send for Deg<N> where
N: Send,
[src]
N: Send,
impl<N> Sync for Deg<N> where
N: Sync,
[src]
N: Sync,
impl<N> Unpin for Deg<N> where
N: Unpin,
[src]
N: Unpin,
impl<N> UnwindSafe for Deg<N> where
N: UnwindSafe,
[src]
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,