[][src]Struct moka::SegmentedCache

pub struct SegmentedCache<K, V, S> { /* fields omitted */ }

Implementations

impl<K, V> SegmentedCache<K, V, RandomState> where
    K: Eq + Hash
[src]

pub fn new(capacity: usize, num_segments: usize) -> Self[src]

Panics

Panics if num_segments is 0.

impl<K, V, S> SegmentedCache<K, V, S> where
    K: Eq + Hash,
    S: BuildHasher + Clone
[src]

pub fn with_hasher(
    capacity: usize,
    num_segments: usize,
    build_hasher: S
) -> Self
[src]

Panics

Panics if num_segments is 0.

Trait Implementations

impl<K, V, S> Clone for SegmentedCache<K, V, S>[src]

impl<K, V, S> ConcurrentCache<K, V> for SegmentedCache<K, V, S> where
    K: Eq + Hash,
    S: BuildHasher + Clone
[src]

impl<K, V, S> Send for SegmentedCache<K, V, S> where
    K: Send + Sync,
    V: Send + Sync,
    S: Send
[src]

impl<K, V, S> Sync for SegmentedCache<K, V, S> where
    K: Send + Sync,
    V: Send + Sync,
    S: Sync
[src]

Auto Trait Implementations

impl<K, V, S> !RefUnwindSafe for SegmentedCache<K, V, S>[src]

impl<K, V, S> Unpin for SegmentedCache<K, V, S>[src]

impl<K, V, S> !UnwindSafe for SegmentedCache<K, V, S>[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.