pub struct InterpolatedPathOutcomeRef<'a> { /* private fields */ }Expand description
Borrowed view of a successful interpolated path plus its stats.
Produced by InterpolatedSearchOutcome::path_outcome; never constructed
for NoPath outcomes.
Implementations§
Source§impl<'a> InterpolatedPathOutcomeRef<'a>
impl<'a> InterpolatedPathOutcomeRef<'a>
Sourcepub const fn kind(&self) -> InterpolatedPathOutcomeKind
pub const fn kind(&self) -> InterpolatedPathOutcomeKind
Returns the path-quality discriminant.
Sourcepub fn expected_kind(&self) -> InterpolatedExpectedKind
pub fn expected_kind(&self) -> InterpolatedExpectedKind
Maps this outcome onto the fixture/oracle expected-kind enum.
Never returns InterpolatedExpectedKind::NoPath or the invalid
endpoint kinds; those apply only to full search outcomes.
Sourcepub const fn path(&self) -> &'a InterpolatedPath
pub const fn path(&self) -> &'a InterpolatedPath
Returns the owned path reference carried by this outcome.
Sourcepub const fn stats(&self) -> &'a InterpolatedSearchStats
pub const fn stats(&self) -> &'a InterpolatedSearchStats
Returns the work counters for the search/replan that produced this path.
Sourcepub fn derived_cost(
&self,
grid: &Grid,
cost_model: InterpolatedTraversalCostModel,
) -> Option<f64>
pub fn derived_cost( &self, grid: &Grid, cost_model: InterpolatedTraversalCostModel, ) -> Option<f64>
Recomputes path cost from geometry under cost_model.
Returns None when any segment is invalid on grid (oracle mismatch
signal when compared to InterpolatedPath::cost).
Sourcepub fn witness_points(&self) -> usize
pub fn witness_points(&self) -> usize
Returns the number of continuous vertices on the path (witness length).
Trait Implementations§
Source§impl<'a> Clone for InterpolatedPathOutcomeRef<'a>
impl<'a> Clone for InterpolatedPathOutcomeRef<'a>
Source§fn clone(&self) -> InterpolatedPathOutcomeRef<'a>
fn clone(&self) -> InterpolatedPathOutcomeRef<'a>
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 moreimpl<'a> Copy for InterpolatedPathOutcomeRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterpolatedPathOutcomeRef<'a>
impl<'a> RefUnwindSafe for InterpolatedPathOutcomeRef<'a>
impl<'a> Send for InterpolatedPathOutcomeRef<'a>
impl<'a> Sync for InterpolatedPathOutcomeRef<'a>
impl<'a> Unpin for InterpolatedPathOutcomeRef<'a>
impl<'a> UnsafeUnpin for InterpolatedPathOutcomeRef<'a>
impl<'a> UnwindSafe for InterpolatedPathOutcomeRef<'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
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