pub struct ResolverContext { /* private fields */ }Expand description
Mutable resolver state threaded through bottom-up resolution and DFS traversal.
Implementations§
Source§impl ResolverContext
impl ResolverContext
pub fn new() -> Self
pub fn add_version_constraint( &mut self, package: &SourceName, requester: &str, constraint: VersionConstraint, )
pub fn add_filter(&mut self, package: &SourceName, filter: FilterMode)
pub fn push_pending(&mut self, item: PendingItem)
pub fn pop_pending(&mut self) -> Option<PendingItem>
pub fn into_graph(self) -> ResolvedGraph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolverContext
impl RefUnwindSafe for ResolverContext
impl Send for ResolverContext
impl Sync for ResolverContext
impl Unpin for ResolverContext
impl UnsafeUnpin for ResolverContext
impl UnwindSafe for ResolverContext
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