Enum BonemealSource
#[non_exhaustive]pub enum BonemealSource {
Interaction,
Mob,
}Expand description
What used bone meal on a block (BonemealSource), for bonemeal.
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.
Interaction
Bone meal used through BoneMealItem.growCrop: by a player, a
dispenser or a villager.
Mob
A mob growing the block itself.
Trait Implementations§
§impl Clone for BonemealSource
impl Clone for BonemealSource
§fn clone(&self) -> BonemealSource
fn clone(&self) -> BonemealSource
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 BonemealSource
§impl Debug for BonemealSource
impl Debug for BonemealSource
impl Eq for BonemealSource
§impl PartialEq for BonemealSource
impl PartialEq for BonemealSource
impl StructuralPartialEq for BonemealSource
Auto Trait Implementations§
impl Freeze for BonemealSource
impl RefUnwindSafe for BonemealSource
impl Send for BonemealSource
impl Sync for BonemealSource
impl Unpin for BonemealSource
impl UnsafeUnpin for BonemealSource
impl UnwindSafe for BonemealSource
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