pub struct LayeredCell<C> {
pub total_cost: Option<C>,
pub predecessor: Option<usize>,
}Expand description
One Bellman-table cell in a layered shortest-path certificate.
Fields§
§total_cost: Option<C>Best total cost from the first layer through this state.
predecessor: Option<usize>Stable index of the predecessor in the previous layer.
Trait Implementations§
Source§impl<C: Clone> Clone for LayeredCell<C>
impl<C: Clone> Clone for LayeredCell<C>
Source§fn clone(&self) -> LayeredCell<C>
fn clone(&self) -> LayeredCell<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 moreSource§impl<C: Debug> Debug for LayeredCell<C>
impl<C: Debug> Debug for LayeredCell<C>
impl<C: Eq> Eq for LayeredCell<C>
Source§impl<C: PartialEq> PartialEq for LayeredCell<C>
impl<C: PartialEq> PartialEq for LayeredCell<C>
impl<C: PartialEq> StructuralPartialEq for LayeredCell<C>
Auto Trait Implementations§
impl<C> Freeze for LayeredCell<C>where
C: Freeze,
impl<C> RefUnwindSafe for LayeredCell<C>where
C: RefUnwindSafe,
impl<C> Send for LayeredCell<C>where
C: Send,
impl<C> Sync for LayeredCell<C>where
C: Sync,
impl<C> Unpin for LayeredCell<C>where
C: Unpin,
impl<C> UnsafeUnpin for LayeredCell<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for LayeredCell<C>where
C: 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