Skip to main content

CacheableArity

Trait CacheableArity 

Source
pub trait CacheableArity<S: CacheableShape>: Arity {
    type Cached: 'static;

    // Required methods
    fn into_cached<'a>(
        values: Self::Container<'a, S::Element<'a>>,
    ) -> Self::Cached;
    fn from_cached(cached: &Self::Cached) -> Self::Container<'_, S::Element<'_>>;
}

Required Associated Types§

Source

type Cached: 'static

Required Methods§

Source

fn into_cached<'a>(values: Self::Container<'a, S::Element<'a>>) -> Self::Cached

Source

fn from_cached(cached: &Self::Cached) -> Self::Container<'_, S::Element<'_>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§