Struct LocalsReader
pub struct LocalsReader<'a> { /* private fields */ }
Expand description
A reader for a function body’s locals.
Implementations§
§impl<'a> LocalsReader<'a>
impl<'a> LocalsReader<'a>
pub fn original_position(&self) -> usize
pub fn original_position(&self) -> usize
Gets the original position of the reader.
pub fn read(&mut self) -> Result<(u32, ValType), BinaryReaderError>
pub fn read(&mut self) -> Result<(u32, ValType), BinaryReaderError>
Reads an item from the reader.
pub fn get_binary_reader(self) -> BinaryReader<'a>
pub fn get_binary_reader(self) -> BinaryReader<'a>
Gets the binary reader from this LocalsReader
Trait Implementations§
§impl<'a> IntoIterator for LocalsReader<'a>
impl<'a> IntoIterator for LocalsReader<'a>
§type IntoIter = LocalsIterator<'a>
type IntoIter = LocalsIterator<'a>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <LocalsReader<'a> as IntoIterator>::IntoIter
fn into_iter(self) -> <LocalsReader<'a> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for LocalsReader<'a>
impl<'a> RefUnwindSafe for LocalsReader<'a>
impl<'a> Send for LocalsReader<'a>
impl<'a> Sync for LocalsReader<'a>
impl<'a> Unpin for LocalsReader<'a>
impl<'a> UnwindSafe for LocalsReader<'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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more