pub struct ByteAngle(pub u8);Expand description
Represents an angle in steps of 1/256 of a full turn.
Tuple Fields§
§0: u8Implementations§
Source§impl ByteAngle
impl ByteAngle
pub fn from_degrees(f: f32) -> ByteAngle
pub fn from_radians(f: f32) -> ByteAngle
pub fn to_degrees(self) -> f32
pub fn to_radians(self) -> f32
Trait Implementations§
Source§impl Ord for ByteAngle
impl Ord for ByteAngle
Source§impl PartialOrd for ByteAngle
impl PartialOrd for ByteAngle
impl Copy for ByteAngle
impl Eq for ByteAngle
impl StructuralPartialEq for ByteAngle
Auto Trait Implementations§
impl Freeze for ByteAngle
impl RefUnwindSafe for ByteAngle
impl Send for ByteAngle
impl Sync for ByteAngle
impl Unpin for ByteAngle
impl UnwindSafe for ByteAngle
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.