Skip to main content

SelectionResolverRegistry

Trait SelectionResolverRegistry 

Source
pub trait SelectionResolverRegistry:
    Send
    + Sync
    + Debug
    + 'static {
    // Required methods
    fn get(&self, id: &ResolverId) -> Option<Arc<dyn SelectionResolver>>;
    fn ids(&self) -> Vec<ResolverId>;
}
Expand description

Host registry. The host (typically the embedding system) provides an implementation that knows how to look up resolvers by id.

Required Methods§

Source

fn get(&self, id: &ResolverId) -> Option<Arc<dyn SelectionResolver>>

Resolver lookup. Returns None if the id is unknown.

Source

fn ids(&self) -> Vec<ResolverId>

Ids of every registered resolver.

Implementors§