Skip to main content

Operation

Type Alias Operation 

Source
pub type Operation = UpdateOperation<AddVertex, RemoveVertex, AddEdge, RemoveEdge>;
Expand description

An update operation for Graph.

Aliased Type§

pub enum Operation {
    AddVertex(AddVertex),
    RemoveVertex(RemoveVertex),
    AddEdge(AddEdge),
    RemoveEdge(RemoveEdge),
}

Variants§

§

AddVertex(AddVertex)

§

RemoveVertex(RemoveVertex)

§

AddEdge(AddEdge)

§

RemoveEdge(RemoveEdge)

Trait Implementations§

Source§

impl From<AddEdge> for Operation

Source§

fn from(e: AddEdge) -> Self

Converts to this type from the input type.
Source§

impl From<AddVertex> for Operation

Source§

fn from(v: AddVertex) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveEdge> for Operation

Source§

fn from(e: RemoveEdge) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveVertex> for Operation

Source§

fn from(v: RemoveVertex) -> Self

Converts to this type from the input type.