Enum hex2d::Angle [−][src]
pub enum Angle { Forward, Right, RightBack, Back, LeftBack, Left, }
Expand description
Angle, relative to a Direction
Variants
0deg clockwise
60deg clockwise
120deg clockwise
180deg clockwise
240deg clockwise
300deg clockwise
Implementations
Static array of all angles
use hex2d::Angle; assert_eq!(Angle::all().len(), 6);
Create Angle from integer in [0, 6) range
This should probably be internal
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Angle
impl UnwindSafe for Angle
Blanket Implementations
Mutably borrows from an owned value. Read more