pub enum InterpolatedPathOutcome {
Found(InterpolatedPath),
PartialPath(InterpolatedPath),
Fallback(InterpolatedPath),
}Expand description
Path quality returned by an interpolated search (full, partial, or fallback).
All three variants own an InterpolatedPath; the discriminant is what
fixture packs and capture oracles assert via InterpolatedExpectedKind.
Variants§
Found(InterpolatedPath)
Continuous path reaches the goal.
PartialPath(InterpolatedPath)
Goal unreachable; path ends at the best partial target cell.
Fallback(InterpolatedPath)
Degenerate partial path (typically start-only) used as last resort.
Implementations§
Source§impl InterpolatedPathOutcome
impl InterpolatedPathOutcome
Sourcepub const fn kind(&self) -> InterpolatedPathOutcomeKind
pub const fn kind(&self) -> InterpolatedPathOutcomeKind
Returns the path-quality discriminant without cloning the path.
Sourcepub const fn path(&self) -> &InterpolatedPath
pub const fn path(&self) -> &InterpolatedPath
Returns the path for any successful quality kind.
Trait Implementations§
Source§impl Clone for InterpolatedPathOutcome
impl Clone for InterpolatedPathOutcome
Source§fn clone(&self) -> InterpolatedPathOutcome
fn clone(&self) -> InterpolatedPathOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterpolatedPathOutcome
impl Debug for InterpolatedPathOutcome
Source§impl PartialEq for InterpolatedPathOutcome
impl PartialEq for InterpolatedPathOutcome
impl StructuralPartialEq for InterpolatedPathOutcome
Auto Trait Implementations§
impl Freeze for InterpolatedPathOutcome
impl RefUnwindSafe for InterpolatedPathOutcome
impl Send for InterpolatedPathOutcome
impl Sync for InterpolatedPathOutcome
impl Unpin for InterpolatedPathOutcome
impl UnsafeUnpin for InterpolatedPathOutcome
impl UnwindSafe for InterpolatedPathOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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