pub struct MapfStarterPlannerResult {
pub outcome: MapfStarterPlannerOutcome,
}Expand description
Result from the bounded MAPF starter planner.
Fields§
§outcome: MapfStarterPlannerOutcomeExplicit solved or failed payload.
Implementations§
Source§impl MapfStarterPlannerResult
impl MapfStarterPlannerResult
Sourcepub const fn solved_plan(&self) -> Option<&MapfPlan>
pub const fn solved_plan(&self) -> Option<&MapfPlan>
Returns the solved plan only when the planner outcome is solved.
Sourcepub const fn partial_plan(&self) -> Option<&MapfPlan>
pub const fn partial_plan(&self) -> Option<&MapfPlan>
Returns the partial plan only when the planner outcome is failed.
Sourcepub const fn plan(&self) -> Option<&MapfPlan>
pub const fn plan(&self) -> Option<&MapfPlan>
Returns any plan payload carried by the result.
Use Self::solved_plan or Self::partial_plan when the outcome
distinction matters.
Sourcepub const fn validation_report(&self) -> Option<&MapfValidationReport>
pub const fn validation_report(&self) -> Option<&MapfValidationReport>
Returns the validation report when present (solved plans always include one;
failed plans include it only for MapfStarterPlannerFailure::UnvalidatedPlan).
Trait Implementations§
Source§impl Clone for MapfStarterPlannerResult
impl Clone for MapfStarterPlannerResult
Source§fn clone(&self) -> MapfStarterPlannerResult
fn clone(&self) -> MapfStarterPlannerResult
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 MapfStarterPlannerResult
impl Debug for MapfStarterPlannerResult
impl Eq for MapfStarterPlannerResult
Source§impl PartialEq for MapfStarterPlannerResult
impl PartialEq for MapfStarterPlannerResult
impl StructuralPartialEq for MapfStarterPlannerResult
Auto Trait Implementations§
impl Freeze for MapfStarterPlannerResult
impl RefUnwindSafe for MapfStarterPlannerResult
impl Send for MapfStarterPlannerResult
impl Sync for MapfStarterPlannerResult
impl Unpin for MapfStarterPlannerResult
impl UnsafeUnpin for MapfStarterPlannerResult
impl UnwindSafe for MapfStarterPlannerResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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