Struct rs_graph::search::astar::Data [−][src]
pub struct Data<E, D, H> {
pub incoming_edge: E,
pub distance: D,
// some fields omitted
}The data stored with an edge during the search.
Fields
incoming_edge: Eincoming edge on currently best path
distance: Dcurrently best known distance
Trait Implementations
impl<E, D, H> PartialOrd<Data<E, D, H>> for Data<E, D, H> where
D: PartialOrd + Clone,
H: Add<D, Output = D> + Clone, [src]
impl<E, D, H> PartialOrd<Data<E, D, H>> for Data<E, D, H> where
D: PartialOrd + Clone,
H: Add<D, Output = D> + Clone, [src]fn partial_cmp(&self, data: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, data: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
Auto Trait Implementations
impl<E, D, H> RefUnwindSafe for Data<E, D, H> where
D: RefUnwindSafe,
E: RefUnwindSafe,
H: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
H: RefUnwindSafe,
impl<E, D, H> Send for Data<E, D, H> where
D: Send,
E: Send,
H: Send,
D: Send,
E: Send,
H: Send,
impl<E, D, H> Sync for Data<E, D, H> where
D: Sync,
E: Sync,
H: Sync,
D: Sync,
E: Sync,
H: Sync,
impl<E, D, H> Unpin for Data<E, D, H> where
D: Unpin,
E: Unpin,
H: Unpin,
D: Unpin,
E: Unpin,
H: Unpin,
impl<E, D, H> UnwindSafe for Data<E, D, H> where
D: UnwindSafe,
E: UnwindSafe,
H: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more