pub struct Enabled(pub bool);
Tuple Fields§
§0: bool
Trait Implementations§
Source§impl From<u16> for Enabled
impl From<u16> for Enabled
Source§fn from(value: BlockStateIntegerRepr) -> Self
fn from(value: BlockStateIntegerRepr) -> Self
In Minecraft, 0
= true
and 1
= false
.
Source§impl Property for Enabled
impl Property for Enabled
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 Enabled
impl Eq for Enabled
impl StructuralPartialEq for Enabled
Auto Trait Implementations§
impl Freeze for Enabled
impl RefUnwindSafe for Enabled
impl Send for Enabled
impl Sync for Enabled
impl Unpin for Enabled
impl UnwindSafe for Enabled
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