Get

Trait Get 

Source
pub trait Get<Idx: ?Sized> {
    type Output: ?Sized;

    // Required method
    fn get<K: Borrow<Idx>>(&self, index: K) -> Option<&Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn get<K: Borrow<Idx>>(&self, index: K) -> Option<&Self::Output>

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§

Source§

impl<'a, K: ?Sized + ToIndex, P, S: GetMut<K>> Get<K> for ViewMut<'a, K, P, S>
where S::Output: Project<P>,

Source§

impl<K: ?Sized + ToIndex, V, const N: usize> Get<K> for BitReclaimMap<K, V, N>

Source§

impl<K: ?Sized + ToIndex, V, const N: usize> Get<K> for IndexMap<K, V, N>

Source§

impl<T: Clone + Copy, const N: usize> Get<usize> for Vec<T, N>