#[repr(u8)]pub enum Block {
Placeable(PlaceableBlock),
Special(SpecialBlock),
}
Variants§
Placeable(PlaceableBlock)
Special(SpecialBlock)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PlaceableBlock> for Block
impl From<PlaceableBlock> for Block
Source§fn from(block: PlaceableBlock) -> Self
fn from(block: PlaceableBlock) -> Self
Converts to this type from the input type.
Source§impl From<SpecialBlock> for Block
impl From<SpecialBlock> for Block
Source§fn from(block: SpecialBlock) -> Self
fn from(block: SpecialBlock) -> Self
Converts to this type from the input type.
Source§impl Ord for Block
impl Ord for Block
Source§impl PartialOrd for Block
impl PartialOrd for Block
impl Copy for Block
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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