pub struct Reader<'a> { /* private fields */ }Expand description
Decodes several objects in memory (the levels of a stack) under one
budget of MAX_DECODED_OBJECTS and MAX_DECODED_NIBBLES: the
caller gets one bounded result, however many levels point at the same
large object.
Implementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
Sourcepub fn new(mem: &'a dyn Memory) -> Self
pub fn new(mem: &'a dyn Memory) -> Self
A reader over mem with a fresh budget, without command names
(commands stay unnamed, programs and algebraics without text).
Sourcepub fn with_names(
mem: &'a dyn Memory,
names: &'a NameTable,
settings: Settings,
) -> Self
pub fn with_names( mem: &'a dyn Memory, names: &'a NameTable, settings: Settings, ) -> Self
A reader that names commands from names and writes the text of
programs, algebraics and units with settings.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Reader<'a>
impl<'a> !RefUnwindSafe for Reader<'a>
impl<'a> !Send for Reader<'a>
impl<'a> !Sync for Reader<'a>
impl<'a> !UnwindSafe for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
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