kvarn::comprash

Enum CacheOut

source
pub enum CacheOut<V> {
    None,
    Present(V),
    NotInserted(V),
}
Expand description

Output of cache operations.

CacheOut::None and CacheOut::Present reflects the HashMap API. CacheOut::NotInserted is added to indicate the content to be cached does not meet the requirements (e.g. it’s too big)

Variants§

§

None

No value.

Returned when no item occupies the input key.

§

Present(V)

Successful cache lookup.

Returned when an item occupies the input key.

§

NotInserted(V)

Error when value failed to get inserted. See CacheOut.

Implementations§