pub trait FeatureResolver<'g> {
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
fn accept(
&mut self,
query: &FeatureQuery<'g>,
link: ConditionalLink<'g>
) -> bool
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
sourceimpl<'g, 'a> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + 'a>
impl<'g, 'a> FeatureResolver<'g> for Box<dyn FeatureResolver<'g> + 'a>
sourcefn accept(
&mut self,
query: &FeatureQuery<'g>,
link: ConditionalLink<'g>
) -> bool
fn accept(
&mut self,
query: &FeatureQuery<'g>,
link: ConditionalLink<'g>
) -> bool
Returns true if this conditional link should be followed during a resolve operation.
sourceimpl<'g, 'a> FeatureResolver<'g> for &'a mut dyn FeatureResolver<'g>
impl<'g, 'a> FeatureResolver<'g> for &'a mut dyn FeatureResolver<'g>
sourcefn accept(
&mut self,
query: &FeatureQuery<'g>,
link: ConditionalLink<'g>
) -> bool
fn accept(
&mut self,
query: &FeatureQuery<'g>,
link: ConditionalLink<'g>
) -> bool
Returns true if this conditional link should be followed during a resolve operation.