Enum collider::geom::Card [] [src]

pub enum Card {
    MinusX,
    MinusY,
    PlusX,
    PlusY,
}

Represents the four cardinal directions in 2D space.

Variants

Negative X direction.

Negative Y direction.

Positive X direction.

Positive Y direction.

Methods

impl Card
[src]

[src]

Returns the negative of the current direction.

[src]

Returns all cardinal directions.

Trait Implementations

impl From<Card> for Vec2
[src]

[src]

Performs the conversion.

impl PartialEq for Card
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Card
[src]

impl Copy for Card
[src]

impl Clone for Card
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Card
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Card
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl From<Card> for CardMask
[src]

[src]

Performs the conversion.

impl Index<Card> for CardMask
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<Card> for CardMask
[src]

[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for Card

impl Sync for Card