pub struct Deserializer<'de> { /* private fields */ }
Implementations§
Source§impl<'de> Deserializer<'de>
impl<'de> Deserializer<'de>
pub fn from_wire(bytes: &'de [u8], handles: &'de [Handle]) -> Self
pub fn deserialize_bool(&mut self) -> Result<bool>
pub fn deserialize_u8(&mut self) -> Result<u8>
pub fn deserialize_u16(&mut self) -> Result<u16>
pub fn deserialize_u32(&mut self) -> Result<u32>
pub fn deserialize_u64(&mut self) -> Result<u64>
pub fn deserialize_u128(&mut self) -> Result<u128>
pub fn deserialize_i8(&mut self) -> Result<i8>
pub fn deserialize_i16(&mut self) -> Result<i16>
pub fn deserialize_i32(&mut self) -> Result<i32>
pub fn deserialize_i64(&mut self) -> Result<i64>
pub fn deserialize_i128(&mut self) -> Result<i128>
pub fn deserialize_f32(&mut self) -> Result<f32>
pub fn deserialize_f64(&mut self) -> Result<f64>
pub fn deserialize_char(&mut self) -> Result<char>
pub fn deserialize_str(&mut self) -> Result<&'de str>
pub fn deserialize_option<T>(&mut self) -> Result<Option<T>>where
T: ?Sized + Deserialize<'de>,
Sourcepub fn deserialize_enum_tag(&mut self) -> Result<u32>
pub fn deserialize_enum_tag(&mut self) -> Result<u32>
Start deserializing an enum
. Any data contained should be deserialized next.
Sourcepub fn deserialize_seq_length(&mut self) -> Result<u32>
pub fn deserialize_seq_length(&mut self) -> Result<u32>
Start deserializing a seq
. Returns the number of elements the caller should deserialize.
Sourcepub fn deserialize_map_length(&mut self) -> Result<u32>
pub fn deserialize_map_length(&mut self) -> Result<u32>
Start deserializing a map
. Returns the number of elements (key-value pairs) the caller should deserialize.
pub fn deserialize_handle(&mut self) -> Result<Handle>
Auto Trait Implementations§
impl<'de> Freeze for Deserializer<'de>
impl<'de> RefUnwindSafe for Deserializer<'de>
impl<'de> Send for Deserializer<'de>
impl<'de> Sync for Deserializer<'de>
impl<'de> Unpin for Deserializer<'de>
impl<'de> UnwindSafe for Deserializer<'de>
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