#[repr(u8)]pub enum SpriteCollisionResponseType {
kCollisionTypeSlide = 0,
kCollisionTypeFreeze = 1,
kCollisionTypeOverlap = 2,
kCollisionTypeBounce = 3,
}
Variants§
kCollisionTypeSlide = 0
kCollisionTypeFreeze = 1
kCollisionTypeOverlap = 2
kCollisionTypeBounce = 3
Trait Implementations§
source§impl Clone for SpriteCollisionResponseType
impl Clone for SpriteCollisionResponseType
source§fn clone(&self) -> SpriteCollisionResponseType
fn clone(&self) -> SpriteCollisionResponseType
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpriteCollisionResponseType
impl Debug for SpriteCollisionResponseType
source§impl Hash for SpriteCollisionResponseType
impl Hash for SpriteCollisionResponseType
source§impl Ord for SpriteCollisionResponseType
impl Ord for SpriteCollisionResponseType
source§impl PartialEq for SpriteCollisionResponseType
impl PartialEq for SpriteCollisionResponseType
source§fn eq(&self, other: &SpriteCollisionResponseType) -> bool
fn eq(&self, other: &SpriteCollisionResponseType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SpriteCollisionResponseType
impl PartialOrd for SpriteCollisionResponseType
source§fn partial_cmp(&self, other: &SpriteCollisionResponseType) -> Option<Ordering>
fn partial_cmp(&self, other: &SpriteCollisionResponseType) -> Option<Ordering>
1.0.0§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SpriteCollisionResponseType
impl Eq for SpriteCollisionResponseType
impl StructuralPartialEq for SpriteCollisionResponseType
Auto Trait Implementations§
impl Freeze for SpriteCollisionResponseType
impl RefUnwindSafe for SpriteCollisionResponseType
impl Send for SpriteCollisionResponseType
impl Sync for SpriteCollisionResponseType
impl Unpin for SpriteCollisionResponseType
impl UnwindSafe for SpriteCollisionResponseType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
kCollisionTypeSlide
: 0 byteskCollisionTypeFreeze
: 0 byteskCollisionTypeOverlap
: 0 byteskCollisionTypeBounce
: 0 bytes