pub struct ZeroCopy<D> { /* private fields */ }
Expand description
This type wraps an input stream and a type that was constructed by parsing that input stream, which allows the parsed type to refer to data in the underlying stream instead of copying it.
Any references given out by a ZeroCopy
should never be used after the ZeroCopy
is dropped.
Trait Implementations§
Source§impl<'a, D> IntoIterator for &'a ZeroCopy<D>where
&'a D: IntoIterator,
impl<'a, D> IntoIterator for &'a ZeroCopy<D>where
&'a D: IntoIterator,
Source§impl<D: Ord> Ord for ZeroCopy<D>
impl<D: Ord> Ord for ZeroCopy<D>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<D: PartialOrd> PartialOrd for ZeroCopy<D>
impl<D: PartialOrd> PartialOrd for ZeroCopy<D>
impl<D: Eq> Eq for ZeroCopy<D>
Auto Trait Implementations§
impl<D> Freeze for ZeroCopy<D>where
D: Freeze,
impl<D> RefUnwindSafe for ZeroCopy<D>where
D: RefUnwindSafe,
impl<D> Send for ZeroCopy<D>where
D: Send,
impl<D> Sync for ZeroCopy<D>where
D: Sync,
impl<D> Unpin for ZeroCopy<D>where
D: Unpin,
impl<D> UnwindSafe for ZeroCopy<D>where
D: 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