pub struct CompassOffset<T, B> { /* private fields */ }
Expand description
Represents a relative angle from a particular zero point that’s not a standard reference like North or East. Used for “relative bearings” and the like where the angle is referenced to the heading of an entity (like, 10 degrees to the right)
Implementations§
Trait Implementations§
Source§impl<T: Clone, B: Clone> Clone for CompassOffset<T, B>
impl<T: Clone, B: Clone> Clone for CompassOffset<T, B>
Source§fn clone(&self) -> CompassOffset<T, B>
fn clone(&self) -> CompassOffset<T, B>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T, B> StructuralPartialEq for CompassOffset<T, B>
Auto Trait Implementations§
impl<T, B> Freeze for CompassOffset<T, B>
impl<T, B> RefUnwindSafe for CompassOffset<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for CompassOffset<T, B>
impl<T, B> Sync for CompassOffset<T, B>
impl<T, B> Unpin for CompassOffset<T, B>
impl<T, B> UnwindSafe for CompassOffset<T, B>where
B: UnwindSafe,
T: 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