[−][src]Enum finalfusion::storage::StorageWrap
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]
fn from(s: MmapQuantizedArray) -> Self
[src]
impl From<NdArray> for StorageWrap
[src]
impl From<QuantizedArray> for StorageWrap
[src]
fn from(s: QuantizedArray) -> Self
[src]
impl Storage for StorageWrap
[src]
Auto Trait Implementations
impl RefUnwindSafe for StorageWrap
impl Send for StorageWrap
impl Sync for StorageWrap
impl Unpin for StorageWrap
impl UnwindSafe for StorageWrap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,