pub struct Edge<EdgeId = IdentityWithInt, NodeId = IdentityWithInt, Kind = EdgeKindless> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface, {
pub in_node: NodeId,
pub out_node: NodeId,
pub kind: Kind,
pub id: EdgeId,
}
Expand description
Canonical implementation of edge.
Fields
in_node: NodeId
Input node.
out_node: NodeId
Output node.
kind: Kind
Kind of the edge.
id: EdgeId
Identifier.
Trait Implementations
sourceimpl<EdgeId, NodeId, Kind> Clone for Edge<EdgeId, NodeId, Kind> where
EdgeId: Clone + IdentityInterface,
NodeId: Clone + IdentityInterface,
Kind: Clone + EdgeKindInterface,
impl<EdgeId, NodeId, Kind> Clone for Edge<EdgeId, NodeId, Kind> where
EdgeId: Clone + IdentityInterface,
NodeId: Clone + IdentityInterface,
Kind: Clone + EdgeKindInterface,
sourceimpl<EdgeId, NodeId, Kind> Debug for Edge<EdgeId, NodeId, Kind> where
EdgeId: Debug + IdentityInterface,
NodeId: Debug + IdentityInterface,
Kind: Debug + EdgeKindInterface,
impl<EdgeId, NodeId, Kind> Debug for Edge<EdgeId, NodeId, Kind> where
EdgeId: Debug + IdentityInterface,
NodeId: Debug + IdentityInterface,
Kind: Debug + EdgeKindInterface,
sourceimpl<EdgeId, NodeId, Kind> HasId for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
impl<EdgeId, NodeId, Kind> HasId for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
sourceimpl<EdgeId, NodeId, Kind> PartialEq<Edge<EdgeId, NodeId, Kind>> for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
impl<EdgeId, NodeId, Kind> PartialEq<Edge<EdgeId, NodeId, Kind>> for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
impl<EdgeId, NodeId, Kind> Copy for Edge<EdgeId, NodeId, Kind> where
EdgeId: Copy + IdentityInterface,
NodeId: Copy + IdentityInterface,
Kind: Copy + EdgeKindInterface,
impl<EdgeId, NodeId, Kind> EdgeBasicInterface for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
impl<EdgeId, NodeId, Kind> Eq for Edge<EdgeId, NodeId, Kind> where
EdgeId: IdentityInterface,
NodeId: IdentityInterface,
Kind: EdgeKindInterface,
Auto Trait Implementations
impl<EdgeId, NodeId, Kind> RefUnwindSafe for Edge<EdgeId, NodeId, Kind> where
EdgeId: RefUnwindSafe,
Kind: RefUnwindSafe,
NodeId: RefUnwindSafe,
impl<EdgeId, NodeId, Kind> Send for Edge<EdgeId, NodeId, Kind> where
EdgeId: Send,
Kind: Send,
NodeId: Send,
impl<EdgeId, NodeId, Kind> Sync for Edge<EdgeId, NodeId, Kind> where
EdgeId: Sync,
Kind: Sync,
NodeId: Sync,
impl<EdgeId, NodeId, Kind> Unpin for Edge<EdgeId, NodeId, Kind> where
EdgeId: Unpin,
Kind: Unpin,
NodeId: Unpin,
impl<EdgeId, NodeId, Kind> UnwindSafe for Edge<EdgeId, NodeId, Kind> where
EdgeId: UnwindSafe,
Kind: UnwindSafe,
NodeId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
sourceimpl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
sourcefn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.