pub struct ExactComponentMatcher {
pub component_type: VarInt,
pub component_data: ItemComponent,
}Expand description
Matches a component exactly.
Fields§
§component_type: VarIntThe ID of the component to check.
component_data: ItemComponentThe encoded data of that component.
Trait Implementations§
Source§impl Clone for ExactComponentMatcher
impl Clone for ExactComponentMatcher
Source§fn clone(&self) -> ExactComponentMatcher
fn clone(&self) -> ExactComponentMatcher
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 ExactComponentMatcher
impl Debug for ExactComponentMatcher
Source§impl Encode for ExactComponentMatcher
impl Encode for ExactComponentMatcher
Source§impl PartialEq for ExactComponentMatcher
impl PartialEq for ExactComponentMatcher
impl StructuralPartialEq for ExactComponentMatcher
Auto Trait Implementations§
impl Freeze for ExactComponentMatcher
impl RefUnwindSafe for ExactComponentMatcher
impl Send for ExactComponentMatcher
impl Sync for ExactComponentMatcher
impl Unpin for ExactComponentMatcher
impl UnwindSafe for ExactComponentMatcher
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