pub struct GraphEdge { /* private fields */ }Expand description
A property-graph edge model.
Implementations§
Source§impl GraphEdge
impl GraphEdge
Sourcepub fn new(
id: EdgeId,
source: VertexId,
target: VertexId,
label: EdgeLabel,
) -> GraphEdge
pub fn new( id: EdgeId, source: VertexId, target: VertexId, label: EdgeLabel, ) -> GraphEdge
Creates a graph edge between two vertices.
Sourcepub fn with_property(self, property: GraphProperty) -> GraphEdge
pub fn with_property(self, property: GraphProperty) -> GraphEdge
Adds a property.
Sourcepub fn properties(&self) -> &[GraphProperty]
pub fn properties(&self) -> &[GraphProperty]
Returns edge properties.
Trait Implementations§
impl Eq for GraphEdge
impl StructuralPartialEq for GraphEdge
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnsafeUnpin for GraphEdge
impl UnwindSafe for GraphEdge
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