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§
Sourcefn serialize_output(&self) -> Result<Vec<u8>>
fn serialize_output(&self) -> Result<Vec<u8>>
Serialize the output to bytes.
Implementors§
impl<T> CellOutput for Twhere
T: for<'a> Serialize<Strategy<Serializer<AlignedVec, ArenaHandle<'a>, Share>, Error>> + Send + Sync + 'static,
Blanket implementation for all rkyv-compatible types.