pub enum TypedGameRuleValue {
Boolean(bool),
Integer(i32),
}Variants§
Trait Implementations§
Source§impl Clone for TypedGameRuleValue
impl Clone for TypedGameRuleValue
Source§fn clone(&self) -> TypedGameRuleValue
fn clone(&self) -> TypedGameRuleValue
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 TypedGameRuleValue
impl Debug for TypedGameRuleValue
Source§impl<'de> Deserialize<'de> for TypedGameRuleValue
impl<'de> Deserialize<'de> for TypedGameRuleValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TypedGameRuleValue
impl Hash for TypedGameRuleValue
Source§impl PartialEq for TypedGameRuleValue
impl PartialEq for TypedGameRuleValue
Source§impl Serialize for TypedGameRuleValue
impl Serialize for TypedGameRuleValue
impl Eq for TypedGameRuleValue
impl StructuralPartialEq for TypedGameRuleValue
Auto Trait Implementations§
impl Freeze for TypedGameRuleValue
impl RefUnwindSafe for TypedGameRuleValue
impl Send for TypedGameRuleValue
impl Sync for TypedGameRuleValue
impl Unpin for TypedGameRuleValue
impl UnwindSafe for TypedGameRuleValue
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