pub struct Node<NodeId = IdentityWithInt, EdgeId = IdentityWithInt, Kind = NodeKindless> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface, {
pub out_nodes: IndexSet<NodeId, RandomState>,
pub out_edges: IndexSet<EdgeId, RandomState>,
pub kind: Kind,
pub id: NodeId,
}
Expand description
Canonical implementation of node.
Fields
out_nodes: IndexSet<NodeId, RandomState>
Input node.
out_edges: IndexSet<EdgeId, RandomState>
Input node.
kind: Kind
Kind of the node.
id: NodeId
Identifier.
Implementations
sourceimpl<NodeId, EdgeId, Kind> Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
Trait Implementations
sourceimpl<NodeId, EdgeId, Kind> Debug for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> Debug for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
sourceimpl<NodeId, EdgeId, Kind> HasId for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> HasId for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
sourceimpl<NodeId, EdgeId, Kind, IntoId> Make1<IntoId> for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
IntoId: Into<<Node<NodeId, EdgeId, Kind> as HasId>::Id>,
impl<NodeId, EdgeId, Kind, IntoId> Make1<IntoId> for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
IntoId: Into<<Node<NodeId, EdgeId, Kind> as HasId>::Id>,
sourceimpl<NodeId, EdgeId, Kind> PartialEq<Node<NodeId, EdgeId, Kind>> for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> PartialEq<Node<NodeId, EdgeId, Kind>> for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> Eq for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
impl<NodeId, EdgeId, Kind> NodeBasicInterface for Node<NodeId, EdgeId, Kind> where
NodeId: IdentityInterface,
EdgeId: IdentityInterface,
Kind: NodeKindInterface,
Auto Trait Implementations
impl<NodeId, EdgeId, Kind> RefUnwindSafe for Node<NodeId, EdgeId, Kind> where
EdgeId: RefUnwindSafe,
Kind: RefUnwindSafe,
NodeId: RefUnwindSafe,
impl<NodeId, EdgeId, Kind> Send for Node<NodeId, EdgeId, Kind> where
EdgeId: Send,
Kind: Send,
NodeId: Send,
impl<NodeId, EdgeId, Kind> Sync for Node<NodeId, EdgeId, Kind> where
EdgeId: Sync,
Kind: Sync,
NodeId: Sync,
impl<NodeId, EdgeId, Kind> Unpin for Node<NodeId, EdgeId, Kind> where
EdgeId: Unpin,
Kind: Unpin,
NodeId: Unpin,
impl<NodeId, EdgeId, Kind> UnwindSafe for Node<NodeId, EdgeId, 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.