Struct rosc::encoder::WriteOutput
source · pub struct WriteOutput<W>(pub W);
Expand description
A newtype which can be used to wrap any type which
implements std::io::Seek
and std::io::Write
to allow
it to be used as an Output
.
Tuple Fields§
§0: W
Trait Implementations§
source§impl<W: Clone> Clone for WriteOutput<W>
impl<W: Clone> Clone for WriteOutput<W>
source§fn clone(&self) -> WriteOutput<W>
fn clone(&self) -> WriteOutput<W>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<W: Debug> Debug for WriteOutput<W>
impl<W: Debug> Debug for WriteOutput<W>
source§impl<W: Default> Default for WriteOutput<W>
impl<W: Default> Default for WriteOutput<W>
source§fn default() -> WriteOutput<W>
fn default() -> WriteOutput<W>
Returns the “default value” for a type. Read more
source§impl<W: Hash> Hash for WriteOutput<W>
impl<W: Hash> Hash for WriteOutput<W>
source§impl<W: Ord> Ord for WriteOutput<W>
impl<W: Ord> Ord for WriteOutput<W>
source§fn cmp(&self, other: &WriteOutput<W>) -> Ordering
fn cmp(&self, other: &WriteOutput<W>) -> Ordering
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<W: Seek + Write> Output for WriteOutput<W>
impl<W: Seek + Write> Output for WriteOutput<W>
source§fn mark(&mut self, size: usize) -> Result<Self::Mark, Self::Err>
fn mark(&mut self, size: usize) -> Result<Self::Mark, Self::Err>
Marks the location of a fixed-length value and returns a
Self::Mark
which may be used to
fill in its data later with place
.source§impl<W: PartialEq> PartialEq<WriteOutput<W>> for WriteOutput<W>
impl<W: PartialEq> PartialEq<WriteOutput<W>> for WriteOutput<W>
source§fn eq(&self, other: &WriteOutput<W>) -> bool
fn eq(&self, other: &WriteOutput<W>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<W: PartialOrd> PartialOrd<WriteOutput<W>> for WriteOutput<W>
impl<W: PartialOrd> PartialOrd<WriteOutput<W>> for WriteOutput<W>
source§fn partial_cmp(&self, other: &WriteOutput<W>) -> Option<Ordering>
fn partial_cmp(&self, other: &WriteOutput<W>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<W: Copy> Copy for WriteOutput<W>
impl<W: Eq> Eq for WriteOutput<W>
impl<W> StructuralEq for WriteOutput<W>
impl<W> StructuralPartialEq for WriteOutput<W>
Auto Trait Implementations§
impl<W> RefUnwindSafe for WriteOutput<W>where W: RefUnwindSafe,
impl<W> Send for WriteOutput<W>where W: Send,
impl<W> Sync for WriteOutput<W>where W: Sync,
impl<W> Unpin for WriteOutput<W>where W: Unpin,
impl<W> UnwindSafe for WriteOutput<W>where W: 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