pub struct Table { /* private fields */ }Available on
unstable only.Expand description
Interner table that holds log levels and maps format strings to indices
Implementations§
Source§impl Table
impl Table
Sourcepub fn new(entries: BTreeMap<usize, TableEntry>) -> Table
pub fn new(entries: BTreeMap<usize, TableEntry>) -> Table
NOTE caller must verify that defmt symbols are compatible with this version of the decoder
crate using the check_version function
pub fn indices<'s>(&'s self) -> impl Iterator<Item = usize> + 's
pub fn is_empty(&self) -> bool
Sourcepub fn raw_symbols<'s>(&'s self) -> impl Iterator<Item = &'s str> + 's
pub fn raw_symbols<'s>(&'s self) -> impl Iterator<Item = &'s str> + 's
Iterates over the raw symbols of the table entries
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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