pub struct PartialComponentMatcher {
pub component_type: VarInt,
pub predicate: Compound,
}Expand description
Matches a subset of data within a component using NBT.
Fields§
§component_type: VarIntThe ID of the component to check.
predicate: CompoundAn NBT matcher to apply to that component’s internal data.
Trait Implementations§
Source§impl Clone for PartialComponentMatcher
impl Clone for PartialComponentMatcher
Source§fn clone(&self) -> PartialComponentMatcher
fn clone(&self) -> PartialComponentMatcher
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 PartialComponentMatcher
impl Debug for PartialComponentMatcher
Source§impl<'a> Decode<'a> for PartialComponentMatcher
impl<'a> Decode<'a> for PartialComponentMatcher
Source§impl Encode for PartialComponentMatcher
impl Encode for PartialComponentMatcher
Source§impl PartialEq for PartialComponentMatcher
impl PartialEq for PartialComponentMatcher
impl StructuralPartialEq for PartialComponentMatcher
Auto Trait Implementations§
impl Freeze for PartialComponentMatcher
impl RefUnwindSafe for PartialComponentMatcher
impl Send for PartialComponentMatcher
impl Sync for PartialComponentMatcher
impl Unpin for PartialComponentMatcher
impl UnwindSafe for PartialComponentMatcher
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