pub struct BinarySerde { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Deserializer for BinarySerde
impl Deserializer for BinarySerde
fn read_u8(&mut self) -> Result<u8, String>
fn read_u16(&mut self) -> Result<u16, String>
fn read_u32(&mut self) -> Result<u32, String>
fn read_u64(&mut self) -> Result<u64, String>
fn read_u128(&mut self) -> Result<u128, String>
fn read_i8(&mut self) -> Result<i8, String>
fn read_i16(&mut self) -> Result<i16, String>
fn read_i32(&mut self) -> Result<i32, String>
fn read_i64(&mut self) -> Result<i64, String>
fn read_i128(&mut self) -> Result<i128, String>
fn read_f32(&mut self) -> Result<f32, String>
fn read_f64(&mut self) -> Result<f64, String>
fn read_bool(&mut self) -> Result<bool, String>
fn read_bytes(&mut self) -> Result<Vec<u8>, String>
fn read_string(&mut self) -> Result<String, String>
fn read_seq<F, T>(&mut self, f: F) -> Result<T, String>
fn read_map<F, T>(&mut self, f: F) -> Result<T, String>
fn read_tuple<F, T>(&mut self, _len: usize, f: F) -> Result<T, String>
fn read_struct<F, T>( &mut self, _name: &str, _fields: &[&str], f: F, ) -> Result<T, String>
fn read_enum<F, T>( &mut self, _enum_name: &str, _variants: &[&str], f: F, ) -> Result<T, String>
Source§impl<'a> Serializer<'a> for BinarySerde
impl<'a> Serializer<'a> for BinarySerde
fn write_u8(&mut self, n: u8)
fn write_u16(&mut self, n: u16)
fn write_u32(&mut self, n: u32)
fn write_u64(&mut self, n: u64)
fn write_u128(&mut self, n: u128)
fn write_i8(&mut self, n: i8)
fn write_i16(&mut self, n: i16)
fn write_i32(&mut self, n: i32)
fn write_i64(&mut self, n: i64)
fn write_i128(&mut self, n: i128)
fn write_f32(&mut self, n: f32)
fn write_f64(&mut self, n: f64)
fn write_bool(&mut self, b: bool)
fn write_bytes(&mut self, bytes: &[u8])
fn write_string(&mut self, s: &str)
fn write_seq<F>(&mut self, len: usize, f: F)where
F: FnOnce(&mut Self),
fn write_map<F>(&mut self, len: usize, f: F)where
F: FnOnce(&mut Self),
fn write_struct<F>(&mut self, _name: &str, _fields: &[&str], f: F)where
F: FnOnce(&mut Self),
fn write_tuple<F>(&mut self, _len: usize, f: F)where
F: FnOnce(&mut Self),
fn write_enum<F>(
&mut self,
_enum_name: &str,
variant_index: u32,
_variant_name: &'a [&'a str],
f: F,
)where
F: FnOnce(&mut Self),
Auto Trait Implementations§
impl Freeze for BinarySerde
impl RefUnwindSafe for BinarySerde
impl Send for BinarySerde
impl Sync for BinarySerde
impl Unpin for BinarySerde
impl UnsafeUnpin for BinarySerde
impl UnwindSafe for BinarySerde
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