Enum LeashHolder
#[non_exhaustive]pub enum LeashHolder {
Unleashed,
Entity(EntityRef),
Knot([i32; 3]),
}Expand description
The resolved holder of a mob’s or a boat’s leash, or its absence.
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.
Unleashed
The entity is not leashed.
Entity(EntityRef)
A player, mob or boat holds the leash.
Knot([i32; 3])
A fence knot holds the leash at this block.
Trait Implementations§
§impl Clone for LeashHolder
impl Clone for LeashHolder
§fn clone(&self) -> LeashHolder
fn clone(&self) -> LeashHolder
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 LeashHolder
§impl Debug for LeashHolder
impl Debug for LeashHolder
impl Eq for LeashHolder
§impl PartialEq for LeashHolder
impl PartialEq for LeashHolder
impl StructuralPartialEq for LeashHolder
Auto Trait Implementations§
impl Freeze for LeashHolder
impl RefUnwindSafe for LeashHolder
impl Send for LeashHolder
impl Sync for LeashHolder
impl Unpin for LeashHolder
impl UnsafeUnpin for LeashHolder
impl UnwindSafe for LeashHolder
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