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§
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