pub struct NamespacePropertyMapping { /* private fields */ }
Expand description
A namespaced property mapping maps human-readable property and attribute labels to AttrIds.
Implementations§
Source§impl NamespacePropertyMapping
impl NamespacePropertyMapping
Sourcepub fn namespace_mut(
&mut self,
namespace_label: String,
) -> &mut PropertyMappings
pub fn namespace_mut( &mut self, namespace_label: String, ) -> &mut PropertyMappings
Get a mutable reference to the namespace
Sourcepub fn attribute_object_id(
&self,
namespace_label: &str,
property_label: &str,
attribute_label: &str,
) -> Option<AttrId>
pub fn attribute_object_id( &self, namespace_label: &str, property_label: &str, attribute_label: &str, ) -> Option<AttrId>
Get the object ID of a single property/attribute label pair, if found.
Sourcepub fn translate<'a>(
&self,
attributes: impl IntoIterator<Item = (&'a str, &'a str, &'a str)>,
) -> FnvHashSet<AttrId>
pub fn translate<'a>( &self, attributes: impl IntoIterator<Item = (&'a str, &'a str, &'a str)>, ) -> FnvHashSet<AttrId>
Translate the given namespace/property/attribute labels to underlying AttrIds.
Trait Implementations§
Source§impl Clone for NamespacePropertyMapping
impl Clone for NamespacePropertyMapping
Source§fn clone(&self) -> NamespacePropertyMapping
fn clone(&self) -> NamespacePropertyMapping
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 Default for NamespacePropertyMapping
impl Default for NamespacePropertyMapping
Source§fn default() -> NamespacePropertyMapping
fn default() -> NamespacePropertyMapping
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a NamespacePropertyMapping
impl<'a> IntoIterator for &'a NamespacePropertyMapping
Auto Trait Implementations§
impl Freeze for NamespacePropertyMapping
impl RefUnwindSafe for NamespacePropertyMapping
impl Send for NamespacePropertyMapping
impl Sync for NamespacePropertyMapping
impl Unpin for NamespacePropertyMapping
impl UnwindSafe for NamespacePropertyMapping
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request