pub enum BlockEntityKind {
Chest,
}Expand description
Type discriminator for BlockEntity.
A small Copy/Eq/Hash enum used to identify the kind of a
block entity without owning its data. Use BlockEntity::kind to
extract the discriminator.
Variants§
Chest
A chest block entity.
Trait Implementations§
Source§impl Clone for BlockEntityKind
impl Clone for BlockEntityKind
Source§fn clone(&self) -> BlockEntityKind
fn clone(&self) -> BlockEntityKind
Returns a duplicate 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 moreSource§impl Debug for BlockEntityKind
impl Debug for BlockEntityKind
Source§impl From<&BlockEntity> for BlockEntityKind
impl From<&BlockEntity> for BlockEntityKind
Source§fn from(be: &BlockEntity) -> Self
fn from(be: &BlockEntity) -> Self
Converts to this type from the input type.
Source§impl Hash for BlockEntityKind
impl Hash for BlockEntityKind
Source§impl PartialEq for BlockEntityKind
impl PartialEq for BlockEntityKind
impl Copy for BlockEntityKind
impl Eq for BlockEntityKind
impl StructuralPartialEq for BlockEntityKind
Auto Trait Implementations§
impl Freeze for BlockEntityKind
impl RefUnwindSafe for BlockEntityKind
impl Send for BlockEntityKind
impl Sync for BlockEntityKind
impl Unpin for BlockEntityKind
impl UnsafeUnpin for BlockEntityKind
impl UnwindSafe for BlockEntityKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.