Skip to main content

Params

Trait Params 

Source
pub trait Params {
    type Collector: CollectorWeak;

    const LENGTH: Capacity = DefaultParams::LENGTH;
}
Expand description

Compile-time configuration for a PTab.

Allows compile-time customization of table parameters. The simplest approach is through ConstParams:

use ptab::{PTab, ConstParams};

type MyTable<T> = PTab<T, ConstParams<8192>>;

Provided Associated Constants§

Source

const LENGTH: Capacity = DefaultParams::LENGTH

The maximum number of entries the table can hold.

See Capacity for more info.

Required Associated Types§

Source

type Collector: CollectorWeak

The memory reclamation strategy used for removed entries.

See Collector for more info.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§