Trait DeserializeMetadata

Source
pub trait DeserializeMetadata
where Self: Sized,
{ type Output; // Required methods fn deserialize(metadata: Option<&[u8]>) -> VortexResult<Self::Output>; fn format(metadata: Option<&[u8]>, f: &mut Formatter<'_>) -> Result; // Provided method unsafe fn deserialize_unchecked(metadata: Option<&[u8]>) -> Self::Output { ... } }

Required Associated Types§

Required Methods§

Source

fn deserialize(metadata: Option<&[u8]>) -> VortexResult<Self::Output>

Source

fn format(metadata: Option<&[u8]>, f: &mut Formatter<'_>) -> Result

Format metadata for display.

Provided Methods§

Source

unsafe fn deserialize_unchecked(metadata: Option<&[u8]>) -> Self::Output

Deserialize metadata without validation.

§Safety

Those who use this API must be sure to have invoked deserialize at least once before calling this method.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§