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::proptest1_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
Auto Trait Implementations§
impl Freeze for Prop010Resolver
impl RefUnwindSafe for Prop010Resolver
impl Send for Prop010Resolver
impl Sync for Prop010Resolver
impl Unpin for Prop010Resolver
impl UnwindSafe for Prop010Resolver
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more