pub struct StructWriter<W: WriteRaw, P: StrictParent<W>> { /* private fields */ }
Implementations§
Source§impl<W: WriteRaw, P: StrictParent<W>> StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> StructWriter<W, P>
pub fn structure<T: StrictStruct>(parent: P) -> Self
pub fn tuple<T: StrictTuple>(parent: P) -> Self
pub fn unnamed(parent: P, tuple: bool) -> Self
pub fn is_tuple(&self) -> bool
pub fn is_struct(&self) -> bool
pub fn named_fields(&self) -> &[FieldName]
pub fn fields_count(&self) -> u8
pub fn name(&self) -> &str
pub fn into_parent(self) -> P
Trait Implementations§
Source§impl<W: Debug + WriteRaw, P: Debug + StrictParent<W>> Debug for StructWriter<W, P>
impl<W: Debug + WriteRaw, P: Debug + StrictParent<W>> Debug for StructWriter<W, P>
Source§impl<W: WriteRaw, P: StrictParent<W>> DefineStruct for StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> DefineStruct for StructWriter<W, P>
Source§impl<W: WriteRaw, P: StrictParent<W>> DefineTuple for StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> DefineTuple for StructWriter<W, P>
type Parent = P
fn define_field<T: StrictEncode>(self) -> Self
fn complete(self) -> P
Source§impl<W: WriteRaw, P: StrictParent<W>> SplitParent for StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> SplitParent for StructWriter<W, P>
type Parent = P
type Remnant = StructWriter<StreamWriter<Sink>, ParentDumb>
fn from_parent_split(parent: P, remnant: Self::Remnant) -> Self
fn into_parent_split(self) -> (P, Self::Remnant)
Source§impl<W: WriteRaw, P: StrictParent<W>> WriteStruct for StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> WriteStruct for StructWriter<W, P>
Source§impl<W: WriteRaw, P: StrictParent<W>> WriteTuple for StructWriter<W, P>
impl<W: WriteRaw, P: StrictParent<W>> WriteTuple for StructWriter<W, P>
Auto Trait Implementations§
impl<W, P> Freeze for StructWriter<W, P>where
P: Freeze,
impl<W, P> RefUnwindSafe for StructWriter<W, P>where
P: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, P> Send for StructWriter<W, P>
impl<W, P> Sync for StructWriter<W, P>
impl<W, P> Unpin for StructWriter<W, P>
impl<W, P> UnwindSafe for StructWriter<W, P>where
P: UnwindSafe,
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