#[repr(C)]pub struct Target<NI, EV> {
pub target: NI,
pub value: EV,
}
Expand description
Represents the target of an edge and its associated value.
Fields§
§target: NI
§value: EV
Implementations§
Trait Implementations§
source§impl<T, V> Ord for Target<T, V>where
T: Ord,
impl<T, V> Ord for Target<T, V>where T: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T, V> PartialEq for Target<T, V>where
T: PartialEq,
impl<T, V> PartialEq for Target<T, V>where T: PartialEq,
source§impl<T, V> PartialOrd for Target<T, V>where
T: PartialOrd,
impl<T, V> PartialOrd for Target<T, V>where T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<NI, EV> Copy for Target<NI, EV>where NI: Copy, EV: Copy,
impl<T, V> Eq for Target<T, V>where T: Eq,
Auto Trait Implementations§
impl<NI, EV> RefUnwindSafe for Target<NI, EV>where EV: RefUnwindSafe, NI: RefUnwindSafe,
impl<NI, EV> Send for Target<NI, EV>where EV: Send, NI: Send,
impl<NI, EV> Sync for Target<NI, EV>where EV: Sync, NI: Sync,
impl<NI, EV> Unpin for Target<NI, EV>where EV: Unpin, NI: Unpin,
impl<NI, EV> UnwindSafe for Target<NI, EV>where EV: UnwindSafe, NI: 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