pub enum RelativeSide {
Bottom,
Top,
Back,
Front,
Right,
Left,
}Expand description
A relative side of a block.
Variants§
Trait Implementations§
source§impl From<ActionSide> for Relative
impl From<ActionSide> for Relative
source§fn from(x: ActionSide) -> Self
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
source§impl From<MoveDirection> for Relative
impl From<MoveDirection> for Relative
source§fn from(x: MoveDirection) -> Self
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
source§impl Ord for Relative
impl Ord for Relative
source§impl PartialEq for Relative
impl PartialEq for Relative
source§impl PartialOrd for Relative
impl PartialOrd for Relative
1.0.0 · source§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 moresource§impl TryFrom<Relative> for ActionSide
impl TryFrom<Relative> for ActionSide
§type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
source§impl TryFrom<Relative> for MoveDirection
impl TryFrom<Relative> for MoveDirection
§type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
impl Copy for Relative
impl Eq for Relative
impl Side for Relative
impl StructuralPartialEq for Relative
Auto Trait Implementations§
impl Freeze for Relative
impl RefUnwindSafe for Relative
impl Send for Relative
impl Sync for Relative
impl Unpin for Relative
impl UnwindSafe for Relative
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