Trait ariadne::Cache [−][src]
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.