Associated function in collections::bitset · BitSet coil-stdlib

BitSet::with_capacity

pub static fn with_capacity(int bits) -> BitSet
Import
use collections::bitset::{BitSet};
Source: src/collections/bitset.hy

Empty set with storage for at least bits indices (0 → no words).

Parameters#

NameType
bitsint

Returns#

BitSet

Contracts#

Checked according to --contracts (see Contracts).

ensures result.size() == 0
ensures result.capacity() >= bits

See also#

↑ ↓ navigate ↵ open