pub struct FastEncoder { /* private fields */ }Expand description
Fast path encoder for common data types
Implementations§
Source§impl FastEncoder
impl FastEncoder
Sourcepub fn encode_unsigned_fast(&mut self, value: u32) -> Result<()>
pub fn encode_unsigned_fast(&mut self, value: u32) -> Result<()>
Fast encode unsigned integer (optimized for common sizes)
Sourcepub fn encode_boolean_fast(&mut self, value: bool) -> Result<()>
pub fn encode_boolean_fast(&mut self, value: bool) -> Result<()>
Fast encode boolean
Sourcepub fn encode_real_fast(&mut self, value: f32) -> Result<()>
pub fn encode_real_fast(&mut self, value: f32) -> Result<()>
Fast encode real (32-bit float)
Auto Trait Implementations§
impl Freeze for FastEncoder
impl RefUnwindSafe for FastEncoder
impl Send for FastEncoder
impl Sync for FastEncoder
impl Unpin for FastEncoder
impl UnsafeUnpin for FastEncoder
impl UnwindSafe for FastEncoder
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