pub struct HasBottle1(pub bool);
Tuple Fields§
§0: bool
Trait Implementations§
Source§impl Clone for HasBottle1
impl Clone for HasBottle1
Source§fn clone(&self) -> HasBottle1
fn clone(&self) -> HasBottle1
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 HasBottle1
impl Debug for HasBottle1
Source§impl Display for HasBottle1
impl Display for HasBottle1
Source§impl From<u16> for HasBottle1
impl From<u16> for HasBottle1
Source§fn from(value: BlockStateIntegerRepr) -> Self
fn from(value: BlockStateIntegerRepr) -> Self
In Minecraft, 0
= true
and 1
= false
.
Source§impl PartialEq for HasBottle1
impl PartialEq for HasBottle1
Source§impl Property for HasBottle1
impl Property for HasBottle1
type Value = bool
fn try_from_block_state(block_state: BlockState) -> Option<Self::Value>
Source§fn to_static_str(&self) -> &'static str
fn to_static_str(&self) -> &'static str
Convert the value of the property to a string, like “x” or “true”.
impl Copy for HasBottle1
impl Eq for HasBottle1
impl StructuralPartialEq for HasBottle1
Auto Trait Implementations§
impl Freeze for HasBottle1
impl RefUnwindSafe for HasBottle1
impl Send for HasBottle1
impl Sync for HasBottle1
impl Unpin for HasBottle1
impl UnwindSafe for HasBottle1
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