Trait LibraryProvider

Source
pub trait LibraryProvider {
    // Required methods
    fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>;
    fn find_ref<'a>(
        &'a self,
        library_hash: &HashBytes,
    ) -> Result<Option<&'a DynCell>, Error>;
}
Expand description

Library cells resolver.

Required Methods§

Source

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Implementations on Foreign Types§

Source§

impl LibraryProvider for Vec<Dict<HashBytes, SimpleLib>>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl LibraryProvider for Dict<HashBytes, SimpleLib>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl LibraryProvider for Dict<HashBytes, LibDescr>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<S: BuildHasher> LibraryProvider for HashMap<HashBytes, SimpleLib, S>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T1, T2> LibraryProvider for (T1, T2)

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T1, T2, T3> LibraryProvider for (T1, T2, T3)

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T: LibraryProvider> LibraryProvider for Option<T>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T: LibraryProvider> LibraryProvider for &T

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T: LibraryProvider> LibraryProvider for Box<T>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T: LibraryProvider> LibraryProvider for Rc<T>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Source§

impl<T: LibraryProvider> LibraryProvider for Arc<T>

Source§

fn find(&self, library_hash: &HashBytes) -> Result<Option<Cell>, Error>

Source§

fn find_ref<'a>( &'a self, library_hash: &HashBytes, ) -> Result<Option<&'a DynCell>, Error>

Implementors§