Type Alias lmfu::HashSet

source ·
pub type HashSet<T> = HashMap<T, ()>;

Aliased Type§

struct HashSet<T> {
    pub hash_to_value: LiteMap<u64, (), Vec<(u64, ()), Global>>,
    /* private fields */
}

Fields§

§hash_to_value: LiteMap<u64, (), Vec<(u64, ()), Global>>

Implementations§

source§

impl<K: Hash + Ord + ?Sized, V> HashMap<K, V>

source

pub const fn new() -> Self

source

pub fn len(&self) -> usize

source

pub fn insert_ref(&mut self, key: &K, value: V) -> Option<V>

source

pub fn contains_key(&self, key: &K) -> bool

source

pub fn get(&self, key: &K) -> Option<&V>

source

pub fn get_mut(&mut self, key: &K) -> Option<&mut V>

source§

impl<K: Hash + Ord, V> HashMap<K, V>

source

pub fn insert(&mut self, key: K, value: V) -> Option<V>

Trait Implementations§

source§

impl<K: ?Sized, V: Clone> Clone for HashMap<K, V>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<K: Debug + ?Sized, V: Debug> Debug for HashMap<K, V>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<K: Default + ?Sized, V: Default> Default for HashMap<K, V>

source§

fn default() -> HashMap<K, V>

Returns the “default value” for a type. Read more