pub enum DirectionType {
Face,
Vertex,
}Expand description
A flag that can be used to indicate whether we are referencing directions for the face or a vertex of a grid cell.
Variants§
Face
A direction that is aligned with the faces of a grid cell.
Vertex
A direction that is aligned with the vertices of a grid cell.
Trait Implementations§
Source§impl Clone for DirectionType
impl Clone for DirectionType
Source§fn clone(&self) -> DirectionType
fn clone(&self) -> DirectionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectionType
impl Debug for DirectionType
Source§impl Default for DirectionType
impl Default for DirectionType
Source§fn default() -> DirectionType
fn default() -> DirectionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectionType
impl<'de> Deserialize<'de> for DirectionType
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 Display for DirectionType
impl Display for DirectionType
Source§impl Hash for DirectionType
impl Hash for DirectionType
Source§impl Not for DirectionType
impl Not for DirectionType
Source§impl Ord for DirectionType
impl Ord for DirectionType
Source§fn cmp(&self, other: &DirectionType) -> Ordering
fn cmp(&self, other: &DirectionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DirectionType
impl PartialEq for DirectionType
Source§fn eq(&self, other: &DirectionType) -> bool
fn eq(&self, other: &DirectionType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DirectionType
impl PartialOrd for DirectionType
Source§impl Serialize for DirectionType
impl Serialize for DirectionType
impl Copy for DirectionType
impl Eq for DirectionType
impl StructuralPartialEq for DirectionType
Auto Trait Implementations§
impl Freeze for DirectionType
impl RefUnwindSafe for DirectionType
impl Send for DirectionType
impl Sync for DirectionType
impl Unpin for DirectionType
impl UnsafeUnpin for DirectionType
impl UnwindSafe for DirectionType
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more