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, 'a> FeatureResolver<'g> for &'a 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, 'a> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + 'a>

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, 'a> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + 'a>

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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