pub struct Tuple4Serializer<S0, S1, S2, S3>(/* private fields */);Expand description
Statically serializes the recursively formed tuple of each child serializer’s Target at roots or recursive carrier nodes. This zero-sized carrier is not registered independently.
Trait Implementations§
Source§impl<S0: Serializer, S1: Serializer, S2: Serializer, S3: Serializer> Serializer for Tuple4Serializer<S0, S1, S2, S3>
impl<S0: Serializer, S1: Serializer, S2: Serializer, S3: Serializer> Serializer for Tuple4Serializer<S0, S1, S2, S3>
type Target = (<S0 as Serializer>::Target, <S1 as Serializer>::Target, <S2 as Serializer>::Target, <S3 as Serializer>::Target)
Source§fn write_data(
value: &Self::Target,
context: &mut WriteContext<'_>,
) -> Result<(), Error>
fn write_data( value: &Self::Target, context: &mut WriteContext<'_>, ) -> Result<(), Error>
Write the target body only.
Source§fn read_data(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
fn read_data(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
Read the target body only.
Source§fn default_value(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
fn default_value(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
Construct a target for a null or missing local value.
Source§fn read_arc_any(
context: &mut ReadContext<'_>,
) -> Result<Arc<dyn Any + Send + Sync>, Error>
fn read_arc_any( context: &mut ReadContext<'_>, ) -> Result<Arc<dyn Any + Send + Sync>, Error>
Read directly into the final owner for sync dynamic carriers.
Auto Trait Implementations§
impl<S0, S1, S2, S3> Freeze for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> RefUnwindSafe for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> Send for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> Sync for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> Unpin for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> UnsafeUnpin for Tuple4Serializer<S0, S1, S2, S3>
impl<S0, S1, S2, S3> UnwindSafe for Tuple4Serializer<S0, S1, S2, S3>
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