[][src]Struct redbpf::HashMap

pub struct HashMap<'a, K: Clone, V: Clone> { /* fields omitted */ }

Implementations

impl<'base, K: Clone, V: Clone> HashMap<'base, K, V>[src]

pub fn new<'a>(base: &'a Map) -> Result<HashMap<'a, K, V>>[src]

pub fn set(&self, key: K, value: V)[src]

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

pub fn delete(&self, key: K)[src]

pub fn iter<'a>(&'a self) -> MapIter<'a, '_, K, V>

Notable traits for MapIter<'_, '_, K, V>

impl<K: Clone, V: Clone, '_, '_> Iterator for MapIter<'_, '_, K, V> type Item = (K, V);
[src]

Auto Trait Implementations

impl<'a, K, V> RefUnwindSafe for HashMap<'a, K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, K, V> Send for HashMap<'a, K, V> where
    K: Send,
    V: Send

impl<'a, K, V> Sync for HashMap<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Unpin for HashMap<'a, K, V> where
    K: Unpin,
    V: Unpin

impl<'a, K, V> UnwindSafe for HashMap<'a, K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.