guppy::graph::feature

Trait FeatureResolver

source
pub trait FeatureResolver<'g> {
    // Required method
    fn accept(
        &mut self,
        query: &FeatureQuery<'g>,
        link: ConditionalLink<'g>,
    ) -> bool;
}
Expand description

Represents whether a particular link within a feature graph should be followed during a resolve operation.

Required Methods§

source

fn accept( &mut self, query: &FeatureQuery<'g>, link: ConditionalLink<'g>, ) -> bool

Returns true if this conditional link should be followed during a resolve operation.

Trait Implementations§

source§

impl<'g> FeatureResolver<'g> for &mut dyn FeatureResolver<'g>

source§

fn accept( &mut self, query: &FeatureQuery<'g>, link: ConditionalLink<'g>, ) -> bool

Returns true if this conditional link should be followed during a resolve operation.
source§

impl<'g> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + '_>

source§

fn accept( &mut self, query: &FeatureQuery<'g>, link: ConditionalLink<'g>, ) -> bool

Returns true if this conditional link should be followed during a resolve operation.

Implementations on Foreign Types§

source§

impl<'g> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + '_>

source§

fn accept( &mut self, query: &FeatureQuery<'g>, link: ConditionalLink<'g>, ) -> bool

source§

impl<'g, T> FeatureResolver<'g> for &mut T
where T: FeatureResolver<'g>,

source§

fn accept( &mut self, query: &FeatureQuery<'g>, link: ConditionalLink<'g>, ) -> bool

Implementors§

source§

impl<'g> FeatureResolver<'g> for &mut dyn FeatureResolver<'g>