muse2::input

Trait IDCollection

Source
pub trait IDCollection {
    // Required method
    fn get_id(&self, id: &str) -> Result<Rc<str>>;
}
Expand description

A data structure containing a set of IDs

Required Methods§

Source

fn get_id(&self, id: &str) -> Result<Rc<str>>

Get the ID after checking that it exists this collection.

§Arguments
  • id - The ID to look up
§Returns

A copy of the Rc<str> in self or an error if not found.

Implementations on Foreign Types§

Source§

impl IDCollection for HashSet<Rc<str>>

Source§

fn get_id(&self, id: &str) -> Result<Rc<str>>

Implementors§