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§
Sourcetype Archivable: SlxData + Serialize<AllocSerializer<NALLOC>>
type Archivable: SlxData + Serialize<AllocSerializer<NALLOC>>
Type of the slx data
Required Methods§
Sourcefn arch_sized(&self) -> Result<ArchData<Self::Archivable>, String>
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