Enum MinecartKind
#[non_exhaustive]pub enum MinecartKind {
Rideable,
Chest,
Furnace,
Tnt,
Hopper,
CommandBlock,
Spawner,
}Expand description
Which minecart an entity is: one per vanilla AbstractMinecart subclass.
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.
Rideable
Minecart.
Chest
MinecartChest.
Furnace
MinecartFurnace.
Tnt
MinecartTNT.
Hopper
MinecartHopper.
CommandBlock
MinecartCommandBlock.
Spawner
MinecartSpawner.
Trait Implementations§
§impl Clone for MinecartKind
impl Clone for MinecartKind
§fn clone(&self) -> MinecartKind
fn clone(&self) -> MinecartKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MinecartKind
§impl Debug for MinecartKind
impl Debug for MinecartKind
impl Eq for MinecartKind
§impl Hash for MinecartKind
impl Hash for MinecartKind
§impl PartialEq for MinecartKind
impl PartialEq for MinecartKind
impl StructuralPartialEq for MinecartKind
Auto Trait Implementations§
impl Freeze for MinecartKind
impl RefUnwindSafe for MinecartKind
impl Send for MinecartKind
impl Sync for MinecartKind
impl Unpin for MinecartKind
impl UnsafeUnpin for MinecartKind
impl UnwindSafe for MinecartKind
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