#[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: EVImplementations§
Trait Implementations§
Source§impl<T: Ord, V> Ord for Target<T, V>
impl<T: Ord, V> Ord for Target<T, V>
Source§impl<T: PartialOrd, V> PartialOrd for Target<T, V>
impl<T: PartialOrd, V> PartialOrd for Target<T, V>
Source§impl<NI, EV> ToByteSlice for Target<NI, EV>where
NI: ToByteSlice,
EV: ToByteSlice,
impl<NI, EV> ToByteSlice for Target<NI, EV>where
NI: ToByteSlice,
EV: ToByteSlice,
Source§impl<NI, EV> ToMutByteSlice for Target<NI, EV>where
NI: ToMutByteSlice,
EV: ToMutByteSlice,
impl<NI, EV> ToMutByteSlice for Target<NI, EV>where
NI: ToMutByteSlice,
EV: ToMutByteSlice,
impl<NI: Copy, EV: Copy> Copy for Target<NI, EV>
impl<T: Eq, V> Eq for Target<T, V>
Auto Trait Implementations§
impl<NI, EV> Freeze for Target<NI, EV>
impl<NI, EV> RefUnwindSafe for Target<NI, EV>where
NI: RefUnwindSafe,
EV: RefUnwindSafe,
impl<NI, EV> Send for Target<NI, EV>
impl<NI, EV> Sync for Target<NI, EV>
impl<NI, EV> Unpin for Target<NI, EV>
impl<NI, EV> UnwindSafe for Target<NI, EV>where
NI: UnwindSafe,
EV: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more