Trait otter_api_tests::ById[][src]

pub trait ById {
    type Id;
    type Entry;
    type Error;
    pub fn byid(&self, t: Self::Id) -> Result<&Self::Entry, Self::Error>;
pub fn byid_mut(
        &mut self,
        t: Self::Id
    ) -> Result<&mut Self::Entry, Self::Error>; }

Associated Types

Loading content...

Required methods

pub fn byid(&self, t: Self::Id) -> Result<&Self::Entry, Self::Error>[src]

pub fn byid_mut(&mut self, t: Self::Id) -> Result<&mut Self::Entry, Self::Error>[src]

Loading content...

Implementors

impl ById for GPieces[src]

type Id = PieceId

type Entry = GPiece

type Error = PieceOpError

impl<I, T> ById for SecondaryMap<I, T> where
    I: IdForById + Key
[src]

type Id = I

type Entry = T

type Error = <I as IdForById>::Error

impl<I, T> ById for DenseSlotMap<I, T> where
    I: IdForById + Key
[src]

type Id = I

type Entry = T

type Error = <I as IdForById>::Error

Loading content...