pub struct Deg(pub f64);Expand description
角度(NewType)
表示角度值。使用 NewType 模式防止与弧度值混淆。
Tuple Fields§
§0: f64Implementations§
Trait Implementations§
Source§impl AddAssign for Deg
impl AddAssign for Deg
Source§fn add_assign(&mut self, rhs: Deg)
fn add_assign(&mut self, rhs: Deg)
Performs the
+= operation. Read moreSource§impl DivAssign<f64> for Deg
impl DivAssign<f64> for Deg
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Deg
impl MulAssign<f64> for Deg
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl PartialOrd for Deg
impl PartialOrd for Deg
Source§impl SubAssign for Deg
impl SubAssign for Deg
Source§fn sub_assign(&mut self, rhs: Deg)
fn sub_assign(&mut self, rhs: Deg)
Performs the
-= operation. Read moreimpl Copy for Deg
impl StructuralPartialEq for Deg
Auto Trait Implementations§
impl Freeze for Deg
impl RefUnwindSafe for Deg
impl Send for Deg
impl Sync for Deg
impl Unpin for Deg
impl UnwindSafe for Deg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more