pub struct Edge<E: Entity, ET: EdgeType<E>> {
pub neighbor: EntityId<E>,
pub weight: f32,
pub inner: ET,
}Expand description
An edge in the network graph. Edges are directed, so the source person is implicit.
Fields§
§neighbor: EntityId<E>The person this edge points to.
weight: f32The weight associated with the edge.
inner: ETAn inner value defined by type T. Often a ZST.
Trait Implementations§
impl<E: Copy + Entity, ET: Copy + EdgeType<E>> Copy for Edge<E, ET>
impl<E: Entity, ET: EdgeType<E>> StructuralPartialEq for Edge<E, ET>
Auto Trait Implementations§
impl<E, ET> Freeze for Edge<E, ET>where
ET: Freeze,
impl<E, ET> RefUnwindSafe for Edge<E, ET>where
ET: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, ET> Send for Edge<E, ET>
impl<E, ET> Sync for Edge<E, ET>
impl<E, ET> Unpin for Edge<E, ET>
impl<E, ET> UnwindSafe for Edge<E, ET>where
ET: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.