Struct array_map::ArraySet [−][src]
pub struct ArraySet<K, const N: usize> { /* fields omitted */ }Expand description
A set backed by an array. All possible keys must be known statically.
This set is O(1) for all operations
Implementations
Inserts a key into the set and returns whether it was already contained in the set
Removes a key from the set and returns whether it was already contained in the set
Returns an iterator over all values that are in the set
Returns this set as a u8 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u16 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u32 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u32 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u64 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u64 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u64 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Returns this set as a u64 (or anything that it can be turned into) with the appropriate bits representing each of the keys in this set.
Trait Implementations
Performs the &= operation. Read more
Performs the |= operation. Read more
Performs the ^= operation. Read more
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Creates a value from an iterator. Read more
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more