#[repr(u8)]pub enum GraphMutationKind {
AddNode = 0,
RemoveNode = 1,
AddEdge = 2,
RemoveEdge = 3,
UpdateEdgeWeight = 4,
UpdateNodeMeta = 5,
}Expand description
Kind of graph mutation operation.
Variants§
AddNode = 0
Add a new node to the graph.
RemoveNode = 1
Remove a node and all its edges.
AddEdge = 2
Add a new edge between two nodes.
RemoveEdge = 3
Remove an edge between two nodes.
UpdateEdgeWeight = 4
Update the weight of an existing edge.
UpdateNodeMeta = 5
Update node metadata.
Implementations§
Trait Implementations§
Source§impl Clone for GraphMutationKind
impl Clone for GraphMutationKind
Source§fn clone(&self) -> GraphMutationKind
fn clone(&self) -> GraphMutationKind
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 GraphMutationKind
impl Debug for GraphMutationKind
Source§impl Hash for GraphMutationKind
impl Hash for GraphMutationKind
Source§impl PartialEq for GraphMutationKind
impl PartialEq for GraphMutationKind
impl Copy for GraphMutationKind
impl Eq for GraphMutationKind
impl StructuralPartialEq for GraphMutationKind
Auto Trait Implementations§
impl Freeze for GraphMutationKind
impl RefUnwindSafe for GraphMutationKind
impl Send for GraphMutationKind
impl Sync for GraphMutationKind
impl Unpin for GraphMutationKind
impl UnsafeUnpin for GraphMutationKind
impl UnwindSafe for GraphMutationKind
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