Enum collider::Event [] [src]

pub enum Event {
    Collide,
    Separate,
}

An event type that may be returned from a Collider instance.

Variants

Occurs when two hitboxes collide

Occurs when two hitboxes separate.

A second Collide betweent two hitboxes may not occur before a Separate. A Separate event must come after a Collide event.

Trait Implementations

impl Copy for Event
[src]

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Event
[src]

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

This method tests for !=.

impl Eq for Event
[src]

impl Debug for Event
[src]

Formats the value using the given formatter.

impl Hash for Event
[src]

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

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