pub struct ArrayAccess<'a, R, T> { /* private fields */ }Expand description
Deserializer for array elements.
Trait Implementations§
Source§impl<'de, R, T> ArrayAccess<'de> for ArrayAccess<'_, R, T>
impl<'de, R, T> ArrayAccess<'de> for ArrayAccess<'_, R, T>
Source§type Element = <T as DeserializeSeed<'de>>::Output
type Element = <T as DeserializeSeed<'de>>::Output
The element / base type of the array.
Source§type Error = DecodeError
type Error = DecodeError
The error type that can be returned if some error occurs during deserialization.
Source§fn next_element(
&mut self,
) -> Result<Option<<T as DeserializeSeed<'de>>::Output>, <ArrayAccess<'_, R, T> as ArrayAccess<'de>>::Error>
fn next_element( &mut self, ) -> Result<Option<<T as DeserializeSeed<'de>>::Output>, <ArrayAccess<'_, R, T> as ArrayAccess<'de>>::Error>
This returns
Ok(Some(value)) for the next element in the array,
or Ok(None) if there are no more remaining elements.Auto Trait Implementations§
impl<'a, R, T> Freeze for ArrayAccess<'a, R, T>where
T: Freeze,
impl<'a, R, T> RefUnwindSafe for ArrayAccess<'a, R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, R, T> Send for ArrayAccess<'a, R, T>
impl<'a, R, T> Sync for ArrayAccess<'a, R, T>
impl<'a, R, T> Unpin for ArrayAccess<'a, R, T>where
T: Unpin,
impl<'a, R, T> !UnwindSafe for ArrayAccess<'a, R, T>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more