pub enum StructureRuleTestData {
AlwaysTrue,
BlockMatch {
block: Identifier,
},
RandomBlockMatch {
block: Identifier,
probability: f32,
},
TagMatch {
tag: Identifier,
},
BlockStateMatch {
block_state: BlockStateData,
},
}Expand description
Block-state rule tests used by RuleProcessor.
Variants§
AlwaysTrue
BlockMatch
Fields
§
block: IdentifierRandomBlockMatch
TagMatch
Fields
§
tag: IdentifierBlockStateMatch
Fields
§
block_state: BlockStateDataTrait Implementations§
Source§impl Clone for StructureRuleTestData
impl Clone for StructureRuleTestData
Source§fn clone(&self) -> StructureRuleTestData
fn clone(&self) -> StructureRuleTestData
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 moreSource§impl Debug for StructureRuleTestData
impl Debug for StructureRuleTestData
Source§impl<'de> Deserialize<'de> for StructureRuleTestData
impl<'de> Deserialize<'de> for StructureRuleTestData
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
Auto Trait Implementations§
impl Freeze for StructureRuleTestData
impl RefUnwindSafe for StructureRuleTestData
impl Send for StructureRuleTestData
impl Sync for StructureRuleTestData
impl Unpin for StructureRuleTestData
impl UnsafeUnpin for StructureRuleTestData
impl UnwindSafe for StructureRuleTestData
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