pub struct KeyValuePair {
pub key: Option<String>,
pub value: Value,
}Expand description
A graph node.
Fields§
§key: Option<String>The name of this node, if any.
value: ValueThe value of this node.
Implementations§
Trait Implementations§
Source§impl Clone for KeyValuePair
impl Clone for KeyValuePair
Source§fn clone(&self) -> KeyValuePair
fn clone(&self) -> KeyValuePair
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyValuePair
impl Debug for KeyValuePair
Source§impl Display for KeyValuePair
impl Display for KeyValuePair
Source§impl Ord for KeyValuePair
impl Ord for KeyValuePair
Source§fn cmp(&self, other: &KeyValuePair) -> Ordering
fn cmp(&self, other: &KeyValuePair) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyValuePair
impl PartialEq for KeyValuePair
Source§impl PartialOrd for KeyValuePair
impl PartialOrd for KeyValuePair
impl Eq for KeyValuePair
impl StructuralPartialEq for KeyValuePair
Auto Trait Implementations§
impl Freeze for KeyValuePair
impl RefUnwindSafe for KeyValuePair
impl Send for KeyValuePair
impl Sync for KeyValuePair
impl Unpin for KeyValuePair
impl UnwindSafe for KeyValuePair
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