pub struct StrictWriter<W: WriteRaw>(/* private fields */);
Implementations§
Source§impl StrictWriter<StreamWriter<Vec<u8>>>
impl StrictWriter<StreamWriter<Vec<u8>>>
Source§impl StrictWriter<StreamWriter<Sink>>
impl StrictWriter<StreamWriter<Sink>>
Trait Implementations§
Source§impl<W: WriteRaw> From<W> for StrictWriter<W>
impl<W: WriteRaw> From<W> for StrictWriter<W>
Source§impl<W: WriteRaw> StrictParent<W> for StrictWriter<W>
impl<W: WriteRaw> StrictParent<W> for StrictWriter<W>
type Remnant = ()
fn from_write_split(writer: StrictWriter<W>, _: Self::Remnant) -> Self
fn into_write_split(self) -> (StrictWriter<W>, Self::Remnant)
Source§impl<W: WriteRaw> TypedWrite for StrictWriter<W>
impl<W: WriteRaw> TypedWrite for StrictWriter<W>
type TupleWriter = StructWriter<W, StrictWriter<W>>
type StructWriter = StructWriter<W, StrictWriter<W>>
type UnionDefiner = UnionWriter<W>
type RawWriter = W
fn write_union<T: StrictUnion>( self, inner: impl FnOnce(Self::UnionDefiner) -> Result<Self>, ) -> Result<Self>
fn write_enum<T: StrictEnum>(self, value: T) -> Result<Self>
fn write_tuple<T: StrictTuple>( self, inner: impl FnOnce(Self::TupleWriter) -> Result<Self>, ) -> Result<Self>
fn write_struct<T: StrictStruct>( self, inner: impl FnOnce(Self::StructWriter) -> Result<Self>, ) -> Result<Self>
fn write_newtype<T: StrictTuple>( self, value: &impl StrictEncode, ) -> Result<Self>
impl<W: WriteRaw> TypedParent for StrictWriter<W>
Auto Trait Implementations§
impl<W> Freeze for StrictWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for StrictWriter<W>where
W: RefUnwindSafe,
impl<W> Send for StrictWriter<W>where
W: Send,
impl<W> Sync for StrictWriter<W>where
W: Sync,
impl<W> Unpin for StrictWriter<W>where
W: Unpin,
impl<W> UnwindSafe for StrictWriter<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