[][src]Trait cl_traits::Get

pub trait Get<T> {
    type GetInput;
    fn get(&self, input: Self::GetInput) -> Option<&T>;
}

Has some way to extract a reference from some sort of storage.

Associated Types

type GetInput

Input type for the get` method.

Loading content...

Required methods

fn get(&self, input: Self::GetInput) -> Option<&T>

Extracts a mutable reference.

Loading content...

Implementors

impl<'a, T> Get<T> for &'a [T][src]

type GetInput = usize

impl<'a, T> Get<T> for &'a mut [T][src]

type GetInput = usize

impl<T, const N: usize> Get<T> for [T; N][src]

type GetInput = usize

Loading content...