Enum oc_wasm_opencomputers::common::RelativeSide  
source · [−]pub enum RelativeSide {
    Bottom,
    Top,
    Back,
    Front,
    Right,
    Left,
}Expand description
A relative side of a block.
Variants
Bottom
Top
Back
Front
Right
Left
Trait Implementations
sourceimpl Clone for RelativeSide
 
impl Clone for RelativeSide
sourcefn clone(&self) -> RelativeSide
 
fn clone(&self) -> RelativeSide
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RelativeSide
 
impl Debug for RelativeSide
sourceimpl From<ActionSide> for RelativeSide
 
impl From<ActionSide> for RelativeSide
sourcefn from(x: ActionSide) -> Self
 
fn from(x: ActionSide) -> Self
Converts to this type from the input type.
sourceimpl From<MoveDirection> for RelativeSide
 
impl From<MoveDirection> for RelativeSide
sourcefn from(x: MoveDirection) -> Self
 
fn from(x: MoveDirection) -> Self
Converts to this type from the input type.
sourceimpl From<RelativeSide> for u8
 
impl From<RelativeSide> for u8
sourcefn from(x: RelativeSide) -> Self
 
fn from(x: RelativeSide) -> Self
Converts to this type from the input type.
sourceimpl From<RelativeSide> for usize
 
impl From<RelativeSide> for usize
sourcefn from(x: RelativeSide) -> Self
 
fn from(x: RelativeSide) -> Self
Converts to this type from the input type.
sourceimpl Hash for RelativeSide
 
impl Hash for RelativeSide
sourceimpl Ord for RelativeSide
 
impl Ord for RelativeSide
sourceimpl PartialEq<RelativeSide> for RelativeSide
 
impl PartialEq<RelativeSide> for RelativeSide
sourceimpl PartialOrd<RelativeSide> for RelativeSide
 
impl PartialOrd<RelativeSide> for RelativeSide
sourcefn partial_cmp(&self, other: &RelativeSide) -> Option<Ordering>
 
fn partial_cmp(&self, other: &RelativeSide) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl TryFrom<RelativeSide> for MoveDirection
 
impl TryFrom<RelativeSide> for MoveDirection
type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
sourcefn try_from(x: RelativeSide) -> Result<Self, Self::Error>
 
fn try_from(x: RelativeSide) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<RelativeSide> for ActionSide
 
impl TryFrom<RelativeSide> for ActionSide
type Error = TryFromRelativeSideError
type Error = TryFromRelativeSideError
The type returned in the event of a conversion error.
sourcefn try_from(x: RelativeSide) -> Result<Self, Self::Error>
 
fn try_from(x: RelativeSide) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<u8> for RelativeSide
 
impl TryFrom<u8> for RelativeSide
impl Copy for RelativeSide
impl Eq for RelativeSide
impl Side for RelativeSide
impl StructuralEq for RelativeSide
impl StructuralPartialEq for RelativeSide
Auto Trait Implementations
impl RefUnwindSafe for RelativeSide
impl Send for RelativeSide
impl Sync for RelativeSide
impl Unpin for RelativeSide
impl UnwindSafe for RelativeSide
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more