pub trait Cache<Id: ?Sized> {
    fn fetch(&mut self, id: &Id) -> Result<&Source, Box<dyn Debug>>;
fn display<'a>(&self, id: &'a Id) -> Option<Box<dyn Display + 'a>>; }
Expand description

A trait implemented by Source caches.

Required methods

Fetch the Source identified by the given ID, if possible.

Display the given ID. as a single inline value.

This function may make use of attributes from the Fmt trait.

Implementations on Foreign Types

Implementors