[][src]Enum finalfusion::storage::StorageWrap

pub enum StorageWrap {
    NdArray(NdArray),
    QuantizedArray(Box<QuantizedArray>),
    MmapArray(MmapArray),
    MmapQuantizedArray(MmapQuantizedArray),
}

Storage types wrapper.

This crate makes it possible to create fine-grained embedding types, such as Embeddings<SimpleVocab, NdArray> or Embeddings<SubwordVocab, QuantizedArray>. However, in some cases it is more pleasant to have a single type that covers all vocabulary and storage types. VocabWrap and StorageWrap wrap all the vocabularies and storage types known to this crate such that the type Embeddings<VocabWrap, StorageWrap> covers all variations.

Variants

NdArray(NdArray)
QuantizedArray(Box<QuantizedArray>)
MmapArray(MmapArray)
MmapQuantizedArray(MmapQuantizedArray)

Trait Implementations

impl From<MmapArray> for StorageWrap[src]

impl From<MmapQuantizedArray> for StorageWrap[src]

impl From<NdArray> for StorageWrap[src]

impl From<QuantizedArray> for StorageWrap[src]

impl Storage for StorageWrap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,