pub struct Edge {
pub edge_id: EdgeId,
pub src_vertex_id: VertexId,
pub dst_vertex_id: VertexId,
pub distance: Distance,
}
Expand description
represents a single edge in a Graph. this struct implements Serialize and Deserialize to support reading edge records from CSV files.
Fields§
§edge_id: EdgeId
§src_vertex_id: VertexId
§dst_vertex_id: VertexId
§distance: Distance
Implementations§
Trait Implementations§
source§impl Allocative for Edge
impl Allocative for Edge
source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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