pub struct Encoder { /* private fields */ }
Implementations§
Source§impl Encoder
impl Encoder
pub fn new() -> Self
pub fn get_buffer(self) -> Vec<u8> ⓘ
pub fn get_buffer_ref(&self) -> &[u8] ⓘ
pub fn uvarint(&mut self, v: u64)
pub fn string(&mut self, text: impl AsRef<str>)
pub fn byte_string(&mut self, source: impl AsRef<[u8]>)
pub fn write<T>(&mut self, value: T)
pub fn write_bytes(&mut self, b: &[u8])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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