pub struct CandidateChain<'a> { /* private fields */ }
Expand description
A sequence of nodes that might come next in the file.
While interactively resolving the order of a file, there could be several choices for the next
node (let’s call these candidates). Moreover, each candidate might have a sequence of nodes
that naturally (but don’t necessarily) come after it. This candidate, plus the sequence of
nodes that follow it, make up a CandidateChain
.
For example, suppose we have a graggle like this:
-> B -> C -> D
/ \
A -> H
\ /
-> E -> F -> G
If A
has already been chosen then B
would be the head of a candidate chain containing B
,
C
, and D
.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CandidateChain<'a>
impl<'a> RefUnwindSafe for CandidateChain<'a>
impl<'a> Send for CandidateChain<'a>
impl<'a> Sync for CandidateChain<'a>
impl<'a> Unpin for CandidateChain<'a>
impl<'a> UnwindSafe for CandidateChain<'a>
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