Enum collider::Event
[−]
[src]
pub enum Event { Collide, Separate, }
An event type that may be returned from a Collider
instance.
Variants
Collide
Occurs when two hitboxes collide
Separate
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]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
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
This method tests for !=
.