Struct libspa::pod::deserialize::ArrayPodDeserializer
source · pub struct ArrayPodDeserializer<'de, E: FixedSizedPod> { /* private fields */ }
Expand description
This struct handles deserializing arrays.
It can be obtained by calling PodDeserializer::deserialize_array
.
The exact number of elements that was returned from that call must be deserialized
using the deserialize_element
function,
followed by calling its end
function to finish deserialization of the array.
Implementations§
source§impl<'de, E: FixedSizedPod> ArrayPodDeserializer<'de, E>
impl<'de, E: FixedSizedPod> ArrayPodDeserializer<'de, E>
sourcepub fn deserialize_element(&mut self) -> Result<E, DeserializeError<&'de [u8]>>
pub fn deserialize_element(&mut self) -> Result<E, DeserializeError<&'de [u8]>>
sourcepub fn end(self) -> Result<DeserializeSuccess<'de>, DeserializeError<&'de [u8]>>
pub fn end(self) -> Result<DeserializeSuccess<'de>, DeserializeError<&'de [u8]>>
Auto Trait Implementations§
impl<'de, E> RefUnwindSafe for ArrayPodDeserializer<'de, E>where
E: RefUnwindSafe,
impl<'de, E> Send for ArrayPodDeserializer<'de, E>where
E: Send,
impl<'de, E> Sync for ArrayPodDeserializer<'de, E>where
E: Sync,
impl<'de, E> Unpin for ArrayPodDeserializer<'de, E>where
E: Unpin,
impl<'de, E> UnwindSafe for ArrayPodDeserializer<'de, E>where
E: 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