Skip to main content

Part

Trait Part 

Source
pub trait Part {
    // Required method
    fn write_part(
        &self,
        out: &mut ValueWriter<'_, '_>,
        ty: &Type,
    ) -> Result<(), EncodeError>;
}
Expand description

A part of an aggregate a ValueWriter writes: any Shaped value, whatever its Rust type.

Required Methods§

Source

fn write_part( &self, out: &mut ValueWriter<'_, '_>, ty: &Type, ) -> Result<(), EncodeError>

Writes it as a value of ty, as Shaped::write_at does.

§Errors

As Shaped::write_at.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Shaped> Part for T