pub struct Encoder { /* private fields */ }Implementations§
Source§impl Encoder
impl Encoder
pub const fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn put_u8(&mut self, value: u8)
pub fn put_u16_le(&mut self, value: u16)
pub fn put_u32_le(&mut self, value: u32)
pub fn put_u64_le(&mut self, value: u64)
pub fn put_compact_size(&mut self, value: u64)
pub fn put_varbytes(&mut self, value: &[u8])
pub fn put_bytes(&mut self, value: &[u8])
pub fn into_bytes(self) -> Vec<u8> ⓘ
Trait Implementations§
impl Eq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnsafeUnpin 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