pub struct GraphProperty { /* private fields */ }Expand description
A graph property key/value pair.
Implementations§
Source§impl GraphProperty
impl GraphProperty
Sourcepub fn new(key: PropertyKey, value: PropertyValue) -> GraphProperty
pub fn new(key: PropertyKey, value: PropertyValue) -> GraphProperty
Creates a graph property.
Sourcepub const fn key(&self) -> &PropertyKey
pub const fn key(&self) -> &PropertyKey
Returns the property key.
Sourcepub const fn value(&self) -> &PropertyValue
pub const fn value(&self) -> &PropertyValue
Returns the property value.
Trait Implementations§
Source§impl Clone for GraphProperty
impl Clone for GraphProperty
Source§fn clone(&self) -> GraphProperty
fn clone(&self) -> GraphProperty
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 GraphProperty
impl Debug for GraphProperty
Source§impl Hash for GraphProperty
impl Hash for GraphProperty
Source§impl PartialEq for GraphProperty
impl PartialEq for GraphProperty
Source§fn eq(&self, other: &GraphProperty) -> bool
fn eq(&self, other: &GraphProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GraphProperty
impl StructuralPartialEq for GraphProperty
Auto Trait Implementations§
impl Freeze for GraphProperty
impl RefUnwindSafe for GraphProperty
impl Send for GraphProperty
impl Sync for GraphProperty
impl Unpin for GraphProperty
impl UnsafeUnpin for GraphProperty
impl UnwindSafe for GraphProperty
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