pub struct MetadataMatch { /* private fields */ }Expand description
A metadata assertion together with the object carrying it.
Implementations§
Source§impl MetadataMatch
impl MetadataMatch
Sourcepub const fn new(target: ObjectRef, assertion: MetadataAssertion) -> Self
pub const fn new(target: ObjectRef, assertion: MetadataAssertion) -> Self
Creates a property-query result.
Sourcepub const fn assertion(&self) -> &MetadataAssertion
pub const fn assertion(&self) -> &MetadataAssertion
Returns the matching assertion.
Trait Implementations§
Source§impl Clone for MetadataMatch
impl Clone for MetadataMatch
Source§fn clone(&self) -> MetadataMatch
fn clone(&self) -> MetadataMatch
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 MetadataMatch
impl Debug for MetadataMatch
impl Eq for MetadataMatch
Source§impl Hash for MetadataMatch
impl Hash for MetadataMatch
Source§impl PartialEq for MetadataMatch
impl PartialEq for MetadataMatch
Source§fn eq(&self, other: &MetadataMatch) -> bool
fn eq(&self, other: &MetadataMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataMatch
Auto Trait Implementations§
impl Freeze for MetadataMatch
impl RefUnwindSafe for MetadataMatch
impl Send for MetadataMatch
impl Sync for MetadataMatch
impl Unpin for MetadataMatch
impl UnsafeUnpin for MetadataMatch
impl UnwindSafe for MetadataMatch
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