pub struct SerIter<T, I: ExactSizeIterator>(/* private fields */);Expand description
A wrapper serializing an exact-size iterator as a boxed slice.
For more information, see the module-level documentation.
Implementations§
Trait Implementations§
Source§impl<T, I: ExactSizeIterator> From<I> for SerIter<T, I>
impl<T, I: ExactSizeIterator> From<I> for SerIter<T, I>
Source§impl<T, I> SerHelper<Deep> for SerIter<T, I>
impl<T, I> SerHelper<Deep> for SerIter<T, I>
Source§unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
Safety Read more
Source§impl<T, I> SerHelper<Zero> for SerIter<T, I>
impl<T, I> SerHelper<Zero> for SerIter<T, I>
Source§unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
Safety Read more
Source§impl<T, I> SerInner for SerIter<T, I>
impl<T, I> SerInner for SerIter<T, I>
Source§const IS_ZERO_COPY: bool = false
const IS_ZERO_COPY: bool = false
Inner constant used by the derive macros to keep
track recursively of whether the type
satisfies the conditions for being zero-copy. It is checked
at runtime against the trait implemented by the type, and
if a
ZeroCopy type has this constant set to false
serialization will panic.Source§type SerType = Box<[<T as SerInner>::SerType]>
type SerType = Box<[<T as SerInner>::SerType]>
This is the type that will be written in the header of the file, and
thus the type that will be deserialized. In most cases it is
Self, but
in some cases, as for references to slices,
it is customized.Source§unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>
Serializes this structure using the given backend. Read more
impl<T: Eq, I: Eq + ExactSizeIterator> Eq for SerIter<T, I>
impl<T, I: ExactSizeIterator> StructuralPartialEq for SerIter<T, I>
Auto Trait Implementations§
impl<T, I> !Freeze for SerIter<T, I>
impl<T, I> !RefUnwindSafe for SerIter<T, I>
impl<T, I> Send for SerIter<T, I>
impl<T, I> !Sync for SerIter<T, I>
impl<T, I> Unpin for SerIter<T, I>
impl<T, I> UnsafeUnpin for SerIter<T, I>where
I: UnsafeUnpin,
impl<T, I> UnwindSafe for SerIter<T, I>where
T: UnwindSafe,
I: 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.