Struct ratio_graph::mdm::MetadataFilter
source · pub struct MetadataFilter { /* private fields */ }Expand description
Filtering options on metadata.
Implementations§
source§impl MetadataFilter
impl MetadataFilter
sourcepub fn satisfies<T: Meta>(&self, instance: &T) -> bool
pub fn satisfies<T: Meta>(&self, instance: &T) -> bool
Whether some metadata holding object satisfies this filter.
sourcepub fn satisfies_kinds<T: Meta>(&self, instance: &T) -> bool
pub fn satisfies_kinds<T: Meta>(&self, instance: &T) -> bool
Whether some metadata holding object satisfies the set kinds.
sourcepub fn satisfies_labels<T: Meta>(&self, instance: &T) -> bool
pub fn satisfies_labels<T: Meta>(&self, instance: &T) -> bool
Whether some metadata holding object satisfies the set labels.
Trait Implementations§
source§impl Clone for MetadataFilter
impl Clone for MetadataFilter
source§fn clone(&self) -> MetadataFilter
fn clone(&self) -> MetadataFilter
Returns a copy 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 MetadataFilter
impl Debug for MetadataFilter
source§impl Default for MetadataFilter
impl Default for MetadataFilter
source§fn default() -> MetadataFilter
fn default() -> MetadataFilter
Returns the “default value” for a type. Read more
source§impl PartialEq<MetadataFilter> for MetadataFilter
impl PartialEq<MetadataFilter> for MetadataFilter
source§fn eq(&self, other: &MetadataFilter) -> bool
fn eq(&self, other: &MetadataFilter) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MetadataFilter
Auto Trait Implementations§
impl RefUnwindSafe for MetadataFilter
impl Send for MetadataFilter
impl Sync for MetadataFilter
impl Unpin for MetadataFilter
impl UnwindSafe for MetadataFilter
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.