Enum oc_wasm_opencomputers::robot::BlockContent  
source · [−]pub enum BlockContent {
    Entity,
    Air,
    Liquid,
    Replaceable,
    Passable,
    Solid,
}Expand description
The things that can exist in the space of a block.
Variants
Entity
There is a creature (player, friendly, neutral, or hostile) or minecart in the space.
Despite the name, note that certain other entities, such as drones, do not return this value. The name is based on the name used within OpenComputers itself.
Air
There is nothing in the space.
Liquid
There is a liquid in the space.
Replaceable
There is a block in the space that the robot can move into, which would be destroyed if it did so.
An example of this kind of content is tall grass.
Passable
There is a block in the space that a player could walk through, but the robot cannot.
An example of this kind of content is a flower.
Solid
There is a normal block in the space.
Implementations
sourceimpl BlockContent
 
impl BlockContent
Trait Implementations
sourceimpl Clone for BlockContent
 
impl Clone for BlockContent
sourcefn clone(&self) -> BlockContent
 
fn clone(&self) -> BlockContent
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 BlockContent
 
impl Debug for BlockContent
sourceimpl Display for BlockContent
 
impl Display for BlockContent
sourceimpl FromStr for BlockContent
 
impl FromStr for BlockContent
sourceimpl Hash for BlockContent
 
impl Hash for BlockContent
sourceimpl Ord for BlockContent
 
impl Ord for BlockContent
sourceimpl PartialEq<BlockContent> for BlockContent
 
impl PartialEq<BlockContent> for BlockContent
sourceimpl PartialOrd<BlockContent> for BlockContent
 
impl PartialOrd<BlockContent> for BlockContent
sourcefn partial_cmp(&self, other: &BlockContent) -> Option<Ordering>
 
fn partial_cmp(&self, other: &BlockContent) -> 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<&'_ str> for BlockContent
 
impl TryFrom<&'_ str> for BlockContent
impl Copy for BlockContent
impl Eq for BlockContent
impl StructuralEq for BlockContent
impl StructuralPartialEq for BlockContent
Auto Trait Implementations
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnwindSafe for BlockContent
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