pub struct PickleEncoder<W: Write> { /* private fields */ }Expand description
Streaming pickle (protocol 2) encoder.
Implementations§
Trait Implementations§
Source§impl<W: Write> FormatEncoder for PickleEncoder<W>
impl<W: Write> FormatEncoder for PickleEncoder<W>
Source§fn separator(&mut self) -> Result<(), Self::Error>
fn separator(&mut self) -> Result<(), Self::Error>
Emit the separator preceding a subsequent array element. Read more
Source§fn write_char(&mut self, value: char) -> Result<(), Self::Error>
fn write_char(&mut self, value: char) -> Result<(), Self::Error>
Emit a single character (a one-scalar string).
Source§fn write_number(&mut self, value: &Number) -> Result<(), Self::Error>
fn write_number(&mut self, value: &Number) -> Result<(), Self::Error>
Emit a number preserving its exact internal kind.
Source§fn write_f64(&mut self, value: f64) -> Result<(), Self::Error>
fn write_f64(&mut self, value: f64) -> Result<(), Self::Error>
Emit an
f64 (shortest round-trip).Source§fn write_f32(&mut self, value: f32) -> Result<(), Self::Error>
fn write_f32(&mut self, value: f32) -> Result<(), Self::Error>
Emit an
f32 (shortest round-trip).Source§fn write_bytes(&mut self, value: &[u8]) -> Result<(), Self::Error>
fn write_bytes(&mut self, value: &[u8]) -> Result<(), Self::Error>
Emit a byte sequence. Read more
Source§fn is_human_readable(&self) -> bool
fn is_human_readable(&self) -> bool
Whether this format produces human-readable output. Read more
Source§fn write_i16(&mut self, value: i16) -> Result<(), Self::Error>
fn write_i16(&mut self, value: i16) -> Result<(), Self::Error>
Emit an
i16 (default: widen to write_i64).Source§fn write_i32(&mut self, value: i32) -> Result<(), Self::Error>
fn write_i32(&mut self, value: i32) -> Result<(), Self::Error>
Emit an
i32 (default: widen to write_i64).Source§fn write_u8(&mut self, value: u8) -> Result<(), Self::Error>
fn write_u8(&mut self, value: u8) -> Result<(), Self::Error>
Emit a
u8 (default: widen to write_u64).Source§fn write_u16(&mut self, value: u16) -> Result<(), Self::Error>
fn write_u16(&mut self, value: u16) -> Result<(), Self::Error>
Emit a
u16 (default: widen to write_u64).Source§fn write_u32(&mut self, value: u32) -> Result<(), Self::Error>
fn write_u32(&mut self, value: u32) -> Result<(), Self::Error>
Emit a
u32 (default: widen to write_u64).Auto Trait Implementations§
impl<W> Freeze for PickleEncoder<W>where
W: Freeze,
impl<W> RefUnwindSafe for PickleEncoder<W>where
W: RefUnwindSafe,
impl<W> Send for PickleEncoder<W>where
W: Send,
impl<W> Sync for PickleEncoder<W>where
W: Sync,
impl<W> Unpin for PickleEncoder<W>where
W: Unpin,
impl<W> UnsafeUnpin for PickleEncoder<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for PickleEncoder<W>where
W: UnwindSafe,
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