Enum collider::geom::Card
[−]
[src]
pub enum Card { MinusX, MinusY, PlusX, PlusY, }
Represents the four cardinal directions in 2D space.
Variants
MinusX
Negative X direction.
MinusY
Negative Y direction.
PlusX
Positive X direction.
PlusY
Positive Y direction.
Methods
impl Card
[src]
pub fn flip(self) -> Card
[src]
Returns the negative of the current direction.
pub fn values() -> [Card; 4]
[src]
Returns all cardinal directions.
Trait Implementations
impl From<Card> for Vec2
[src]
impl PartialEq for Card
[src]
fn eq(&self, __arg_0: &Card) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Card
[src]
impl Copy for Card
[src]
impl Clone for Card
[src]
fn clone(&self) -> Card
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Card
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for Card
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<Card> for CardMask
[src]
impl Index<Card> for CardMask
[src]
type Output = bool
The returned type after indexing.
fn index(&self, index: Card) -> &bool
[src]
Performs the indexing (container[index]
) operation.