pub struct SearchStats {
pub nodes_expanded: u64,
pub nodes_generated: u64,
pub plan_cost: f64,
pub plan_length: usize,
pub elapsed: Duration,
}Expand description
Statistics collected during a search.
Fields§
§nodes_expanded: u64Number of states expanded (popped from the open list).
nodes_generated: u64Number of states generated (successors created).
plan_cost: f64Total cost of the found plan (0.0 if no plan).
plan_length: usizeNumber of steps in the found plan (0 if no plan).
elapsed: DurationWall-clock time spent searching.
Trait Implementations§
Source§impl Clone for SearchStats
impl Clone for SearchStats
Source§fn clone(&self) -> SearchStats
fn clone(&self) -> SearchStats
Returns a duplicate of the value. Read more
1.0.0 · 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 SearchStats
impl Debug for SearchStats
Source§impl Default for SearchStats
impl Default for SearchStats
Source§fn default() -> SearchStats
fn default() -> SearchStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchStats
impl RefUnwindSafe for SearchStats
impl Send for SearchStats
impl Sync for SearchStats
impl Unpin for SearchStats
impl UnsafeUnpin for SearchStats
impl UnwindSafe for SearchStats
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
fn accept_mut(&self, v: &mut V) -> O
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