struct SliceGetter<'a, E> {
list: &'a [E],
}
Fields§
§list: &'a [E]
Trait Implementations§
Source§impl<'de, E> SeqAccess<'de> for SliceGetter<'de, E>
impl<'de, E> SeqAccess<'de> for SliceGetter<'de, E>
Source§type Error = Error
type Error = Error
The error type that can be returned if some error occurs during
deserialization.
Source§fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>>where
T: DeserializeSeed<'de>,
fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>>where
T: DeserializeSeed<'de>,
This returns
Ok(Some(value))
for the next value in the sequence, or
Ok(None)
if there are no more remaining items. Read moreSource§fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>where
T: Deserialize<'de>,
fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>where
T: Deserialize<'de>,
This returns
Ok(Some(value))
for the next value in the sequence, or
Ok(None)
if there are no more remaining items. Read moreAuto Trait Implementations§
impl<'a, E> Freeze for SliceGetter<'a, E>
impl<'a, E> RefUnwindSafe for SliceGetter<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for SliceGetter<'a, E>where
E: Sync,
impl<'a, E> Sync for SliceGetter<'a, E>where
E: Sync,
impl<'a, E> Unpin for SliceGetter<'a, E>
impl<'a, E> UnwindSafe for SliceGetter<'a, E>where
E: RefUnwindSafe,
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