pub struct Tier2Registry { /* private fields */ }Expand description
A registry of tier-2 identifier labels (T39).
Implementations§
Source§impl Tier2Registry
impl Tier2Registry
Sourcepub fn register(&mut self, label: Tier2Label) -> &mut Self
pub fn register(&mut self, label: Tier2Label) -> &mut Self
Register a label for an IRI.
Sourcepub fn labels_for(&self, iri: &str) -> &[Tier2Label]
pub fn labels_for(&self, iri: &str) -> &[Tier2Label]
Get all labels for an IRI.
Sourcepub fn label_in_locale(&self, iri: &str, locale: &str) -> Option<&Tier2Label>
pub fn label_in_locale(&self, iri: &str, locale: &str) -> Option<&Tier2Label>
Get the label for an IRI in a specific locale.
Sourcepub fn labels_in_locale(&self, locale: &str) -> Vec<&Tier2Label>
pub fn labels_in_locale(&self, locale: &str) -> Vec<&Tier2Label>
Get all labels for a locale.
Sourcepub fn label_count(&self) -> usize
pub fn label_count(&self) -> usize
Total number of labels.
Trait Implementations§
Source§impl Clone for Tier2Registry
impl Clone for Tier2Registry
Source§impl Debug for Tier2Registry
impl Debug for Tier2Registry
Auto Trait Implementations§
impl Freeze for Tier2Registry
impl RefUnwindSafe for Tier2Registry
impl Send for Tier2Registry
impl Sync for Tier2Registry
impl Unpin for Tier2Registry
impl UnsafeUnpin for Tier2Registry
impl UnwindSafe for Tier2Registry
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