pub struct LayeredPath<S, C> {
pub states: Vec<S>,
pub indices: Vec<usize>,
pub total_cost: C,
pub certificate: LayeredCertificate<C>,
pub receipt: AlgorithmReceipt,
}Expand description
A minimum-cost path selecting one state from every layer.
Fields§
§states: Vec<S>Selected state from each layer.
indices: Vec<usize>Stable input index selected from each layer.
total_cost: CExact total transition cost.
certificate: LayeredCertificate<C>Checkable Bellman values and backpointers.
receipt: AlgorithmReceiptDeterministic cell/edge work accounting.
Trait Implementations§
Source§impl<S: Clone, C: Clone> Clone for LayeredPath<S, C>
impl<S: Clone, C: Clone> Clone for LayeredPath<S, C>
Source§fn clone(&self) -> LayeredPath<S, C>
fn clone(&self) -> LayeredPath<S, C>
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<S: Eq, C: Eq> Eq for LayeredPath<S, C>
impl<S: PartialEq, C: PartialEq> StructuralPartialEq for LayeredPath<S, C>
Auto Trait Implementations§
impl<S, C> Freeze for LayeredPath<S, C>where
C: Freeze,
impl<S, C> RefUnwindSafe for LayeredPath<S, C>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, C> Send for LayeredPath<S, C>
impl<S, C> Sync for LayeredPath<S, C>
impl<S, C> Unpin for LayeredPath<S, C>
impl<S, C> UnsafeUnpin for LayeredPath<S, C>where
C: UnsafeUnpin,
impl<S, C> UnwindSafe for LayeredPath<S, C>where
C: UnwindSafe,
S: UnwindSafe,
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