struct Reader<'a> {
b: &'a [u8],
pos: usize,
}Fields§
§b: &'a [u8]§pos: usizeImplementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
fn new(b: &'a [u8]) -> Self
fn eof(&self) -> bool
fn byte(&mut self) -> Result<u8, DecodeError>
fn bytes(&mut self, n: usize) -> Result<&'a [u8], DecodeError>
fn u32(&mut self) -> Result<u32, DecodeError>
fn uleb(&mut self, bits: u32) -> Result<u64, DecodeError>
fn sleb(&mut self, bits: u32) -> Result<i64, DecodeError>
fn name(&mut self) -> Result<String, DecodeError>
fn valtype(&mut self) -> Result<ValType, DecodeError>
fn limits(&mut self) -> Result<Limits, DecodeError>
fn table_type(&mut self) -> Result<TableType, DecodeError>
fn global_type(&mut self) -> Result<GlobalType, DecodeError>
fn const_expr(&mut self) -> Result<ConstExpr, DecodeError>
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> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe 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