pub struct CompiledCatalog { /* private fields */ }Expand description
Runtime-oriented lookup structure compiled from a normalized catalog.
Implementations§
Source§impl CompiledCatalog
impl CompiledCatalog
Sourcepub fn get(&self, key: &str) -> Option<&CompiledMessage>
pub fn get(&self, key: &str) -> Option<&CompiledMessage>
Returns the compiled message for key, if present.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &CompiledMessage)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &CompiledMessage)>
Iterates over compiled entries in key order.
Trait Implementations§
Source§impl Clone for CompiledCatalog
impl Clone for CompiledCatalog
Source§fn clone(&self) -> CompiledCatalog
fn clone(&self) -> CompiledCatalog
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 CompiledCatalog
impl Debug for CompiledCatalog
Source§impl Default for CompiledCatalog
impl Default for CompiledCatalog
Source§fn default() -> CompiledCatalog
fn default() -> CompiledCatalog
Returns the “default value” for a type. Read more
Source§impl PartialEq for CompiledCatalog
impl PartialEq for CompiledCatalog
impl Eq for CompiledCatalog
impl StructuralPartialEq for CompiledCatalog
Auto Trait Implementations§
impl Freeze for CompiledCatalog
impl RefUnwindSafe for CompiledCatalog
impl Send for CompiledCatalog
impl Sync for CompiledCatalog
impl Unpin for CompiledCatalog
impl UnsafeUnpin for CompiledCatalog
impl UnwindSafe for CompiledCatalog
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