#[non_exhaustive]pub enum BlockEntity {
Barrel {
items: Vec<ItemSlot>,
},
SignPre1D20 {
glowing: bool,
color: String,
line_1: String,
line_2: String,
line_3: String,
line_4: String,
},
}
Expand description
A block entity
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for BlockEntity
impl Clone for BlockEntity
Source§fn clone(&self) -> BlockEntity
fn clone(&self) -> BlockEntity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BlockEntity
impl RefUnwindSafe for BlockEntity
impl Send for BlockEntity
impl Sync for BlockEntity
impl Unpin for BlockEntity
impl UnwindSafe for BlockEntity
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