pub struct Wrap<F: Float, U: Unit<F>>(/* private fields */);Expand description
An angle that wraps between a negative half turn and a positive half turn.
Implementations§
Source§impl<F: Float, U: Unit<F>> Wrap<F, U>
impl<F: Float, U: Unit<F>> Wrap<F, U>
Sourcepub const QUARTER_TURN: Self
pub const QUARTER_TURN: Self
Quarter turn around a circle. Equal to π/2 radians or 90°.
Sourcepub const FULL_TURN: Angle<F, U> = Angle::FULL_TURN
pub const FULL_TURN: Angle<F, U> = Angle::FULL_TURN
Full turn around a circle. Equal to 2π radians or 360°;
Trait Implementations§
Source§impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> AddAssign<Rhs> for Wrap<F, U>
impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> AddAssign<Rhs> for Wrap<F, U>
Source§fn add_assign(&mut self, rhs: Rhs)
fn add_assign(&mut self, rhs: Rhs)
Performs the
+= operation. Read moreSource§impl<F: Float, U: Unit<F>> DivAssign<F> for Wrap<F, U>
impl<F: Float, U: Unit<F>> DivAssign<F> for Wrap<F, U>
Source§fn div_assign(&mut self, rhs: F)
fn div_assign(&mut self, rhs: F)
Performs the
/= operation. Read moreSource§impl<F: Float, U: Unit<F>> MulAssign<F> for Wrap<F, U>
impl<F: Float, U: Unit<F>> MulAssign<F> for Wrap<F, U>
Source§fn mul_assign(&mut self, rhs: F)
fn mul_assign(&mut self, rhs: F)
Performs the
*= operation. Read moreSource§impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> SubAssign<Rhs> for Wrap<F, U>
impl<F: Float, U: Unit<F>, Rhs: Into<Angle<F, U>>> SubAssign<Rhs> for Wrap<F, U>
Source§fn sub_assign(&mut self, rhs: Rhs)
fn sub_assign(&mut self, rhs: Rhs)
Performs the
-= operation. Read moreimpl<F: Float, U: Unit<F>> Copy for Wrap<F, U>
impl<F: Float, U: Unit<F>> Eq for Wrap<F, U>
Auto Trait Implementations§
impl<F, U> Freeze for Wrap<F, U>where
F: Freeze,
impl<F, U> RefUnwindSafe for Wrap<F, U>where
F: RefUnwindSafe,
U: RefUnwindSafe,
impl<F, U> Send for Wrap<F, U>
impl<F, U> Sync for Wrap<F, U>
impl<F, U> Unpin for Wrap<F, U>
impl<F, U> UnwindSafe for Wrap<F, U>where
F: UnwindSafe,
U: UnwindSafe,
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