Enum mold2d::collision::CollisionSide
[−]
[src]
#[repr(u8)]pub enum CollisionSide { Left, Right, Top, Bottom, }
Variants
Left
Right
Top
Bottom
Methods
impl CollisionSide
[src]
fn reverse(side: CollisionSide) -> u8
Reverses a collision side
fn reverse_u8(side: u8) -> u8
Reverses a collision side byte
fn print(self)
Trait Implementations
impl Clone for CollisionSide
[src]
fn clone(&self) -> CollisionSide
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 Copy for CollisionSide
[src]
impl Debug for CollisionSide
[src]
impl PartialEq for CollisionSide
[src]
fn eq(&self, __arg_0: &CollisionSide) -> 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 !=
.
impl BitAnd<CollisionSide> for CollisionSide
[src]
type Output = u8
The resulting type after applying the &
operator
fn bitand(self, other: CollisionSide) -> u8
The method for the &
operator
impl BitAnd<u8> for CollisionSide
[src]
type Output = u8
The resulting type after applying the &
operator
fn bitand(self, other: u8) -> u8
The method for the &
operator
impl BitOr<CollisionSide> for CollisionSide
[src]
type Output = u8
The resulting type after applying the |
operator
fn bitor(self, other: CollisionSide) -> u8
The method for the |
operator
impl BitOr<u8> for CollisionSide
[src]
type Output = u8
The resulting type after applying the |
operator
fn bitor(self, other: u8) -> u8
The method for the |
operator
impl PartialEq<u8> for CollisionSide
[src]
fn eq(&self, other: &u8) -> 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 !=
.
impl From<u8> for CollisionSide
[src]
fn from(side: u8) -> CollisionSide
Performs the conversion.