pub( crate ) mod private
{
use crate::prelude::*;
#[ derive( Debug, Copy, Clone ) ]
pub struct Edge< EdgeId = crate::IdentityWithInt, NodeId = crate::IdentityWithInt, Kind = crate::EdgeKindless >
where
EdgeId : IdentityInterface,
NodeId : IdentityInterface,
Kind : EdgeKindInterface,
{
pub in_node : NodeId,
pub out_node : NodeId,
pub kind : Kind,
pub id : EdgeId,
}
impl< EdgeId, NodeId, Kind > HasId
for Edge< EdgeId, NodeId, Kind >
where
EdgeId : IdentityInterface,
NodeId : IdentityInterface,
Kind : EdgeKindInterface,
{
type Id = EdgeId;
fn id( &self ) -> Self::Id
{
self.id
}
}
impl< EdgeId, NodeId, Kind > EdgeBasicInterface
for Edge< EdgeId, NodeId, Kind >
where
EdgeId : IdentityInterface,
NodeId : IdentityInterface,
Kind : EdgeKindInterface,
{
}
impl< EdgeId, NodeId, Kind > PartialEq
for Edge< EdgeId, NodeId, Kind >
where
EdgeId : IdentityInterface,
NodeId : IdentityInterface,
Kind : EdgeKindInterface,
{
fn eq( &self, other : &Self ) -> bool
{
self.id() == other.id()
}
}
impl< EdgeId, NodeId, Kind > Eq
for Edge< EdgeId, NodeId, Kind >
where
EdgeId : IdentityInterface,
NodeId : IdentityInterface,
Kind : EdgeKindInterface,
{}
}
pub mod protected
{
pub use super::orphan::*;
}
pub use protected::*;
pub mod orphan
{
pub use super::exposed::*;
pub use super::private::Edge;
}
pub mod exposed
{
pub use super::prelude::*;
}
pub mod prelude
{
}