pub struct Serializer { /* private fields */ }
Expand description
This type holds all intermediate states during serialization.
Implementations§
Source§impl Serializer
impl Serializer
pub fn serialize_nil(&mut self)
pub fn serialize_bool(&mut self, v: bool)
pub fn serialize_int(&mut self, v: Int)
pub fn serialize_f32(&mut self, v: f32)
pub fn serialize_f64(&mut self, v: f64)
pub fn serialize_str(&mut self, v: &[u8])
pub fn serialize_bin(&mut self, v: &[u8])
pub fn serialize_array(&mut self, len: u32)
pub fn serialize_map(&mut self, len: u32)
pub fn serialize_ext(&mut self, tag: i8, data: &[u8])
Auto Trait Implementations§
impl Freeze for Serializer
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnwindSafe for Serializer
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