pub struct Radians<T> {
pub radians: T,
}
Expand description
Temporary alias to facilitate the transition to the new naming scheme An angle in radians
Fields
radians: T
Implementations
sourceimpl<T> Angle<T>where
T: Trig,
impl<T> Angle<T>where
T: Trig,
pub fn degrees(deg: T) -> Self
pub fn to_degrees(self) -> T
sourceimpl<T> Angle<T>where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
impl<T> Angle<T>where
T: Rem<Output = T> + Sub<Output = T> + Add<Output = T> + Zero + FloatConst + PartialOrd + Copy,
Trait Implementations
sourceimpl<T: Clone + AddAssign<T>> AddAssign<Angle<T>> for Angle<T>
impl<T: Clone + AddAssign<T>> AddAssign<Angle<T>> for Angle<T>
sourcefn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)
Performs the
+=
operation. Read moresourceimpl<T: Clone + DivAssign<T>> DivAssign<T> for Angle<T>
impl<T: Clone + DivAssign<T>> DivAssign<T> for Angle<T>
sourcefn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)
Performs the
/=
operation. Read moresourceimpl<T: Clone + MulAssign<T>> MulAssign<T> for Angle<T>
impl<T: Clone + MulAssign<T>> MulAssign<T> for Angle<T>
sourcefn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)
Performs the
*=
operation. Read moresourceimpl<T: PartialEq> PartialEq<Angle<T>> for Angle<T>
impl<T: PartialEq> PartialEq<Angle<T>> for Angle<T>
sourceimpl<T: PartialOrd> PartialOrd<Angle<T>> for Angle<T>
impl<T: PartialOrd> PartialOrd<Angle<T>> for Angle<T>
sourcefn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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 moresourceimpl<T: Clone + SubAssign<T>> SubAssign<Angle<T>> for Angle<T>
impl<T: Clone + SubAssign<T>> SubAssign<Angle<T>> for Angle<T>
sourcefn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Angle<T>
impl<T: Eq> Eq for Angle<T>
impl<T> StructuralEq for Angle<T>
impl<T> StructuralPartialEq for Angle<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Angle<T>where
T: RefUnwindSafe,
impl<T> Send for Angle<T>where
T: Send,
impl<T> Sync for Angle<T>where
T: Sync,
impl<T> Unpin for Angle<T>where
T: Unpin,
impl<T> UnwindSafe for Angle<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more