pub struct Writer<'a>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Write for Writer<'_>
impl Write for Writer<'_>
Source§fn remaining(&self) -> Option<usize>
fn remaining(&self) -> Option<usize>
Return the number of bytes remaining in this writer, or
None
if
infinite.Source§fn take(&mut self, len: usize) -> FullResult<Self>
fn take(&mut self, len: usize) -> FullResult<Self>
Write a number of bytes as a new writer. Read more
Source§fn str(&mut self, string: impl AsRef<str>) -> FullResult
fn str(&mut self, string: impl AsRef<str>) -> FullResult
Write out a UTF-8 string slice (does not include length).
Source§fn u8(&mut self, byte: u8) -> FullResult
fn u8(&mut self, byte: u8) -> FullResult
Write out a byte
Source§fn i8(&mut self, byte: i8) -> FullResult
fn i8(&mut self, byte: i8) -> FullResult
Write out a signed byte
Source§fn uleb128<T: UInt>(&mut self, value: T) -> FullResult
fn uleb128<T: UInt>(&mut self, value: T) -> FullResult
Write out
value
in ULEB128 encoding.Auto Trait Implementations§
impl<'a> Freeze for Writer<'a>
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> Send for Writer<'a>
impl<'a> Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> !UnwindSafe for Writer<'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
Source§impl<T_traitful_extend__> Write for T_traitful_extend__where
T_traitful_extend__: Write,
impl<T_traitful_extend__> Write for T_traitful_extend__where
T_traitful_extend__: Write,
Source§fn u16(&mut self, int: u16) -> Result<(), FullError>
fn u16(&mut self, int: u16) -> Result<(), FullError>
Write out a big endian encoded 2-byte unsigned integer.
Source§fn u32(&mut self, int: u32) -> Result<(), FullError>
fn u32(&mut self, int: u32) -> Result<(), FullError>
Write out a big endian encoded 4-byte unsigned integer.
Source§fn u64(&mut self, int: u64) -> Result<(), FullError>
fn u64(&mut self, int: u64) -> Result<(), FullError>
Write out a big endian encoded 8-byte unsigned integer.
Source§fn u128(&mut self, int: u128) -> Result<(), FullError>
fn u128(&mut self, int: u128) -> Result<(), FullError>
Write out a big endian encoded 16-byte unsigned integer.
Source§fn i16(&mut self, int: i16) -> Result<(), FullError>
fn i16(&mut self, int: i16) -> Result<(), FullError>
Write out a big endian encoded 2-byte signed integer.
Source§fn i32(&mut self, int: i32) -> Result<(), FullError>
fn i32(&mut self, int: i32) -> Result<(), FullError>
Write out a big endian encoded 4-byte signed integer.
Source§fn i64(&mut self, int: i64) -> Result<(), FullError>
fn i64(&mut self, int: i64) -> Result<(), FullError>
Write out a big endian encoded 8-byte signed integer.
Source§fn i128(&mut self, int: i128) -> Result<(), FullError>
fn i128(&mut self, int: i128) -> Result<(), FullError>
Write out a big endian encoded 16-byte signed integer.
Source§impl<T_traitful_extend__> Write for T_traitful_extend__where
T_traitful_extend__: Write,
impl<T_traitful_extend__> Write for T_traitful_extend__where
T_traitful_extend__: Write,
Source§fn u16(&mut self, int: u16) -> Result<(), FullError>
fn u16(&mut self, int: u16) -> Result<(), FullError>
Write out a little endian encoded 2-byte unsigned integer.
Source§fn u32(&mut self, int: u32) -> Result<(), FullError>
fn u32(&mut self, int: u32) -> Result<(), FullError>
Write out a little endian encoded 4-byte unsigned integer.
Source§fn u64(&mut self, int: u64) -> Result<(), FullError>
fn u64(&mut self, int: u64) -> Result<(), FullError>
Write out a little endian encoded 8-byte unsigned integer.
Source§fn u128(&mut self, int: u128) -> Result<(), FullError>
fn u128(&mut self, int: u128) -> Result<(), FullError>
Write out a little endian encoded 16-byte unsigned integer.
Source§fn i16(&mut self, int: i16) -> Result<(), FullError>
fn i16(&mut self, int: i16) -> Result<(), FullError>
Write out a little endian encoded 2-byte signed integer.
Source§fn i32(&mut self, int: i32) -> Result<(), FullError>
fn i32(&mut self, int: i32) -> Result<(), FullError>
Write out a little endian encoded 4-byte signed integer.
Source§fn i64(&mut self, int: i64) -> Result<(), FullError>
fn i64(&mut self, int: i64) -> Result<(), FullError>
Write out a little endian encoded 8-byte signed integer.
Source§fn i128(&mut self, int: i128) -> Result<(), FullError>
fn i128(&mut self, int: i128) -> Result<(), FullError>
Write out a little endian encoded 16-byte signed integer.