pub trait PackageLinkVisitor<'g> {
// Required method
fn visit_link(
&mut self,
cx: &PackageLinkContext<'g>,
link: PackageLink<'g>,
) -> bool;
}Expand description
Represents whether a particular link within a package graph should be followed during a resolve operation.
Required Methods§
Sourcefn visit_link(
&mut self,
cx: &PackageLinkContext<'g>,
link: PackageLink<'g>,
) -> bool
fn visit_link( &mut self, cx: &PackageLinkContext<'g>, link: PackageLink<'g>, ) -> bool
Returns true if this link should be followed during a resolve operation.
Returning false does not prevent the to package (or from package with query_reverse)
from being included if it’s reachable through other means.
Trait Implementations§
Source§impl<'g> PackageLinkVisitor<'g> for Box<dyn PackageLinkVisitor<'g> + '_>
impl<'g> PackageLinkVisitor<'g> for Box<dyn PackageLinkVisitor<'g> + '_>
Source§fn visit_link(
&mut self,
cx: &PackageLinkContext<'g>,
link: PackageLink<'g>,
) -> bool
fn visit_link( &mut self, cx: &PackageLinkContext<'g>, link: PackageLink<'g>, ) -> bool
Returns true if this link should be followed during a resolve operation. Read more
Source§impl<'g> PackageLinkVisitor<'g> for &mut dyn PackageLinkVisitor<'g>
impl<'g> PackageLinkVisitor<'g> for &mut dyn PackageLinkVisitor<'g>
Source§fn visit_link(
&mut self,
cx: &PackageLinkContext<'g>,
link: PackageLink<'g>,
) -> bool
fn visit_link( &mut self, cx: &PackageLinkContext<'g>, link: PackageLink<'g>, ) -> bool
Returns true if this link should be followed during a resolve operation. Read more
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".