pub struct CopyBinaryEncoder { /* private fields */ }Expand description
Implementations§
Source§impl CopyBinaryEncoder
impl CopyBinaryEncoder
Sourcepub fn new() -> Self
pub fn new() -> Self
New encoder — emits signature + 4-byte flags(0) + 4-byte header extension length(0).
Sourcepub fn write_field_bytes(&mut self, bytes: &[u8])
pub fn write_field_bytes(&mut self, bytes: &[u8])
Write a non-null field: i32 BE length prefix + raw bytes.
Sourcepub fn write_null(&mut self)
pub fn write_null(&mut self)
Write a NULL field: i32 BE -1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyBinaryEncoder
impl RefUnwindSafe for CopyBinaryEncoder
impl Send for CopyBinaryEncoder
impl Sync for CopyBinaryEncoder
impl Unpin for CopyBinaryEncoder
impl UnsafeUnpin for CopyBinaryEncoder
impl UnwindSafe for CopyBinaryEncoder
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