CellOutput

Trait CellOutput 

Source
pub trait CellOutput:
    Send
    + Sync
    + 'static {
    // Required methods
    fn serialize_output(&self) -> Result<Vec<u8>>;
    fn type_hash(&self) -> u64;
    fn type_name(&self) -> &'static str;
}
Expand description

Trait for cell outputs that can be serialized and restored.

This trait is automatically implemented for any type that implements Serialize + DeserializeOwned + 'static.

Required Methods§

Source

fn serialize_output(&self) -> Result<Vec<u8>>

Serialize the output to bytes.

Source

fn type_hash(&self) -> u64

Get the type hash for schema validation.

Source

fn type_name(&self) -> &'static str

Get the type name for debugging.

Implementors§

Source§

impl<T> CellOutput for T
where T: for<'a> Serialize<Strategy<Serializer<AlignedVec, ArenaHandle<'a>, Share>, Error>> + Send + Sync + 'static,

Blanket implementation for all rkyv-compatible types.