pub struct InitialLabelMap { /* private fields */ }Expand description
The parsed crate::schema::dispatch_label vocabulary.
Implementations§
Source§impl InitialLabelMap
impl InitialLabelMap
Sourcepub fn load() -> Result<Self, InitialLabelMapError>
pub fn load() -> Result<Self, InitialLabelMapError>
Load the checked-in map (embedded at compile time).
Sourcepub fn parse_text(text: &str) -> Result<Self, InitialLabelMapError>
pub fn parse_text(text: &str) -> Result<Self, InitialLabelMapError>
Parse map text (unit-testable seam; production always uses
Self::load).
Sourcepub fn bit_of(&self, name: &str) -> Option<u32>
pub fn bit_of(&self, name: &str) -> Option<u32>
The stable bit a live compartment name is assigned.
Sourcepub fn name_of(&self, bit: u32) -> Option<&str>
pub fn name_of(&self, bit: u32) -> Option<&str>
The live name a bit resolves to (canonical rendering).
Sourcepub fn retired_names(&self) -> Vec<&str>
pub fn retired_names(&self) -> Vec<&str>
Tombstoned names — listed for audit output only, never assignable.
Trait Implementations§
Source§impl Clone for InitialLabelMap
impl Clone for InitialLabelMap
Source§fn clone(&self) -> InitialLabelMap
fn clone(&self) -> InitialLabelMap
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 moreAuto Trait Implementations§
impl Freeze for InitialLabelMap
impl RefUnwindSafe for InitialLabelMap
impl Send for InitialLabelMap
impl Sync for InitialLabelMap
impl Unpin for InitialLabelMap
impl UnsafeUnpin for InitialLabelMap
impl UnwindSafe for InitialLabelMap
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