Enum tato::ColliderKind
source · #[repr(u8)]pub enum ColliderKind {
Point,
Rect {
w: f32,
h: f32,
},
Tilemap {
w: f32,
h: f32,
tile_width: u8,
tile_height: u8,
},
}
Variants§
Trait Implementations§
source§impl Clone for ColliderKind
impl Clone for ColliderKind
source§fn clone(&self) -> ColliderKind
fn clone(&self) -> ColliderKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColliderKind
impl Debug for ColliderKind
impl Copy for ColliderKind
Auto Trait Implementations§
impl Freeze for ColliderKind
impl RefUnwindSafe for ColliderKind
impl Send for ColliderKind
impl Sync for ColliderKind
impl Unpin for ColliderKind
impl UnwindSafe for ColliderKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more