pub struct ParseContext<'g> { /* private fields */ }
Expand description
Inputs to filterset parsing.
Implementations§
Source§impl<'g> ParseContext<'g>
impl<'g> ParseContext<'g>
Sourcepub fn new(graph: &'g PackageGraph) -> Self
pub fn new(graph: &'g PackageGraph) -> Self
Creates a new ParseContext
.
Sourcepub fn graph(&self) -> &'g PackageGraph
pub fn graph(&self) -> &'g PackageGraph
Returns the package graph.
Trait Implementations§
Auto Trait Implementations§
impl<'g> !Freeze for ParseContext<'g>
impl<'g> RefUnwindSafe for ParseContext<'g>
impl<'g> Send for ParseContext<'g>
impl<'g> Sync for ParseContext<'g>
impl<'g> Unpin for ParseContext<'g>
impl<'g> UnwindSafe for ParseContext<'g>
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