pub struct GraphVertex { /* private fields */ }Expand description
A property-graph vertex model.
Implementations§
Source§impl GraphVertex
impl GraphVertex
Sourcepub fn new(id: VertexId, label: VertexLabel) -> GraphVertex
pub fn new(id: VertexId, label: VertexLabel) -> GraphVertex
Creates a graph vertex.
Sourcepub fn with_property(self, property: GraphProperty) -> GraphVertex
pub fn with_property(self, property: GraphProperty) -> GraphVertex
Adds a property.
Sourcepub const fn label(&self) -> &VertexLabel
pub const fn label(&self) -> &VertexLabel
Returns the vertex label.
Sourcepub fn properties(&self) -> &[GraphProperty]
pub fn properties(&self) -> &[GraphProperty]
Returns vertex properties.
Trait Implementations§
Source§impl Clone for GraphVertex
impl Clone for GraphVertex
Source§fn clone(&self) -> GraphVertex
fn clone(&self) -> GraphVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphVertex
impl Debug for GraphVertex
Source§impl PartialEq for GraphVertex
impl PartialEq for GraphVertex
Source§fn eq(&self, other: &GraphVertex) -> bool
fn eq(&self, other: &GraphVertex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GraphVertex
impl StructuralPartialEq for GraphVertex
Auto Trait Implementations§
impl Freeze for GraphVertex
impl RefUnwindSafe for GraphVertex
impl Send for GraphVertex
impl Sync for GraphVertex
impl Unpin for GraphVertex
impl UnsafeUnpin for GraphVertex
impl UnwindSafe for GraphVertex
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