Skip to main content

DynExtDTypeVTable

Trait DynExtDTypeVTable 

Source
pub trait DynExtDTypeVTable:
    'static
    + Send
    + Sync
    + Debug {
    // Required methods
    fn id(&self) -> ExtID;
    fn deserialize(
        &self,
        data: &[u8],
        storage_dtype: DType,
    ) -> VortexResult<ExtDTypeRef>;
}
Expand description

A dynamic vtable for extension types, used for type-erased deserialization.

Required Methods§

Source

fn id(&self) -> ExtID

Returns the ID for this extension type.

Source

fn deserialize( &self, data: &[u8], storage_dtype: DType, ) -> VortexResult<ExtDTypeRef>

Deserialize an extension type from serialized metadata.

Implementors§