Trait Get

Source
pub trait Get<K>
where K: ?Sized,
{ type Output: ?Sized; // Required method fn get(&self, _: K) -> Option<&Self::Output>; }

Required Associated Types§

Required Methods§

Source

fn get(&self, _: K) -> Option<&Self::Output>

Implementations on Foreign Types§

Source§

impl<'a, K, Q, V> Get<&'a Q> for BTreeMap<K, V>
where K: Eq + Ord + Borrow<Q>, Q: Eq + Ord + ?Sized,

Source§

type Output = V

Source§

fn get(&self, q: &Q) -> Option<&Self::Output>

Source§

impl<'a, K, Q, V, S> Get<&'a Q> for HashMap<K, V, S>
where K: Eq + Hash + Borrow<Q>, Q: Eq + Hash + ?Sized, S: BuildHasher,

Source§

type Output = V

Source§

fn get(&self, q: &Q) -> Option<&Self::Output>

Source§

impl<'a, Q, V> Get<&'a Q> for BTreeSet<V>
where Q: Eq + Ord + ?Sized, V: Eq + Ord + Borrow<Q>,

Source§

type Output = V

Source§

fn get(&self, q: &Q) -> Option<&Self::Output>

Source§

impl<'a, Q, V, S> Get<&'a Q> for HashSet<V, S>
where Q: Eq + Hash + ?Sized, V: Eq + Hash + Borrow<Q>, S: BuildHasher,

Source§

type Output = V

Source§

fn get(&self, q: &Q) -> Option<&Self::Output>

Source§

impl<T> Get<usize> for [T]

Source§

type Output = T

Source§

fn get(&self, index: usize) -> Option<&Self::Output>

Source§

impl<T> Get<usize> for LinkedList<T>

Source§

type Output = T

Source§

fn get(&self, index: usize) -> Option<&Self::Output>

Source§

impl<T> Get<usize> for VecDeque<T>

Source§

type Output = T

Source§

fn get(&self, index: usize) -> Option<&Self::Output>

Source§

impl<T> Get<usize> for Vec<T>

Source§

type Output = T

Source§

fn get(&self, index: usize) -> Option<&Self::Output>

Implementors§