pub enum Part<E, T> {
Element(E),
Done(T),
}Expand description
A part of a value that is read with the elements of its
Streamed sequence handed out.
Such a value is read in parts: first the elements, then the rest of the
value. This is the result of ElementReader::poll (and of
Reader::read_next of deser::io).
Variants§
Element(E)
An element of the Streamed sequence of the value.
Done(T)
The value is complete (without the elements that were handed out).
Trait Implementations§
impl<E: Eq, T: Eq> Eq for Part<E, T>
impl<E: PartialEq, T: PartialEq> StructuralPartialEq for Part<E, T>
Auto Trait Implementations§
impl<E, T> Freeze for Part<E, T>
impl<E, T> RefUnwindSafe for Part<E, T>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T> Send for Part<E, T>
impl<E, T> Sync for Part<E, T>
impl<E, T> Unpin for Part<E, T>
impl<E, T> UnsafeUnpin for Part<E, T>where
E: UnsafeUnpin,
T: UnsafeUnpin,
impl<E, T> UnwindSafe for Part<E, T>where
E: UnwindSafe,
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.