[−][src]Struct libjp::resolver::CandidateChain
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
.
Methods
impl<'a> CandidateChain<'a>
[src]
pub fn first(&self) -> NodeId
[src]
Returns the first element of this chain.
pub fn iter(
&self
) -> impl Iterator<Item = NodeId> + 'a
[src]
&self
) -> impl Iterator<Item = NodeId> + 'a
Returns an iterator over all elements of this chain (including the first).
Auto Trait Implementations
impl<'a> Send for CandidateChain<'a>
impl<'a> Sync for CandidateChain<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self