pub struct FastSerializer;Expand description
Zero-Allocation Serializer Helper
Implementations§
Source§impl FastSerializer
impl FastSerializer
Sourcepub fn append_u64(buf: &mut Vec<u8>, val: u64)
pub fn append_u64(buf: &mut Vec<u8>, val: u64)
Appends a u64 integer to a buffer using itoa without allocating a String.
Sourcepub fn append_f64(buf: &mut Vec<u8>, val: f64)
pub fn append_f64(buf: &mut Vec<u8>, val: f64)
Appends an f64 float to a buffer using ryu without allocating a String.
Trait Implementations§
Source§impl Clone for FastSerializer
impl Clone for FastSerializer
impl Copy for FastSerializer
Auto Trait Implementations§
impl Freeze for FastSerializer
impl RefUnwindSafe for FastSerializer
impl Send for FastSerializer
impl Sync for FastSerializer
impl Unpin for FastSerializer
impl UnsafeUnpin for FastSerializer
impl UnwindSafe for FastSerializer
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