pub struct Tuple3Serializer<S0, S1, S2>(/* 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> Serializer for Tuple3Serializer<S0, S1, S2>
impl<S0: Serializer, S1: Serializer, S2: Serializer> Serializer for Tuple3Serializer<S0, S1, S2>
type Target = (<S0 as Serializer>::Target, <S1 as Serializer>::Target, <S2 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> Freeze for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> RefUnwindSafe for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> Send for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> Sync for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> Unpin for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> UnsafeUnpin for Tuple3Serializer<S0, S1, S2>
impl<S0, S1, S2> UnwindSafe for Tuple3Serializer<S0, S1, S2>
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