Trait ArchSized

Source
pub trait ArchSized {
    type Archivable: SlxData + Serialize<AllocSerializer<NALLOC>>;

    // Required method
    fn arch_sized(&self) -> Result<ArchData<Self::Archivable>, String>;
}
Expand description

A trait helper for building a sized archive from a slx data

Required Associated Types§

Source

type Archivable: SlxData + Serialize<AllocSerializer<NALLOC>>

Type of the slx data

Required Methods§

Source

fn arch_sized(&self) -> Result<ArchData<Self::Archivable>, String>

Build the archive data from a slx data reference

  • Output: the archive data or an error

Implementors§

Source§

impl<U> ArchSized for U
where U: SlxData + Serialize<AllocSerializer<NALLOC>>,