#[repr(C)]pub enum Octal {
East = 0,
SouthEast = 1,
South = 2,
SouthWest = 3,
West = 4,
NorthWest = 5,
North = 6,
NorthEast = 7,
}Expand description
An octal (8-way) direction.
Variants§
Implementations§
Source§impl Octal
impl Octal
Sourcepub fn from_index(idx: usize) -> Option<Self>
pub fn from_index(idx: usize) -> Option<Self>
Parse from a direction’s variant index.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Octal
impl<'de> Deserialize<'de> for Octal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Float> Direction<T> for Octal
impl<T: Float> Direction<T> for Octal
Source§fn to_degrees(self) -> Degrees<T>
fn to_degrees(self) -> Degrees<T>
Angle of the direction in degrees.
Source§fn to_radians(self) -> Radians<T>
fn to_radians(self) -> Radians<T>
Angle of the direction in radians.
Source§fn to_rotations(self) -> Rotations<T>
fn to_rotations(self) -> Rotations<T>
Angle of the direction in rotations.
Source§impl Ord for Octal
impl Ord for Octal
Source§impl PartialOrd for Octal
impl PartialOrd for Octal
impl Copy for Octal
impl Eq for Octal
impl StructuralPartialEq for Octal
Auto Trait Implementations§
impl Freeze for Octal
impl RefUnwindSafe for Octal
impl Send for Octal
impl Sync for Octal
impl Unpin for Octal
impl UnwindSafe for Octal
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