Struct guppy::graph::Prop010Resolver
source · pub struct Prop010Resolver { /* private fields */ }
Available on crate feature
proptest1
only.Expand description
A randomly generated package resolver.
Created by PackageGraph::prop010_resolver_strategy
. Requires the proptest1
feature to be
enabled.
Implementations§
source§impl Prop010Resolver
impl Prop010Resolver
sourcepub fn check_depends_on(&mut self, check: bool)
pub fn check_depends_on(&mut self, check: bool)
If called with true, this resolver will then verify that any links passed in are in the correct direction.
sourcepub fn accept_link(&self, link: PackageLink<'_>) -> bool
pub fn accept_link(&self, link: PackageLink<'_>) -> bool
Returns true if the given link is accepted by this resolver.
Trait Implementations§
source§impl Clone for Prop010Resolver
impl Clone for Prop010Resolver
source§fn clone(&self) -> Prop010Resolver
fn clone(&self) -> Prop010Resolver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Prop010Resolver
impl Debug for Prop010Resolver
source§impl<'g> PackageResolver<'g> for Prop010Resolver
impl<'g> PackageResolver<'g> for Prop010Resolver
source§fn accept(&mut self, query: &PackageQuery<'g>, link: PackageLink<'g>) -> bool
fn accept(&mut self, query: &PackageQuery<'g>, link: PackageLink<'g>) -> bool
Returns true if this link should be followed during a resolve operation. Read more