pub struct GraphProjection {
pub nodes: Vec<GraphNode>,
pub edges: Vec<GraphEdge>,
}Fields§
§nodes: Vec<GraphNode>§edges: Vec<GraphEdge>Implementations§
Source§impl GraphProjection
impl GraphProjection
pub fn upsert_into<S: GraphStore + ?Sized>(&self, store: &S) -> Result<()>
pub fn to_convex_rows(&self) -> ConvexProjectionRows
Trait Implementations§
Source§impl Clone for GraphProjection
impl Clone for GraphProjection
Source§fn clone(&self) -> GraphProjection
fn clone(&self) -> GraphProjection
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 GraphProjection
impl Debug for GraphProjection
Source§impl Default for GraphProjection
impl Default for GraphProjection
Source§fn default() -> GraphProjection
fn default() -> GraphProjection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphProjection
impl<'de> Deserialize<'de> for GraphProjection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GraphProjection> for ConvexProjectionRows
impl From<&GraphProjection> for ConvexProjectionRows
Source§fn from(projection: &GraphProjection) -> Self
fn from(projection: &GraphProjection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphProjection
impl PartialEq for GraphProjection
Source§fn eq(&self, other: &GraphProjection) -> bool
fn eq(&self, other: &GraphProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GraphProjection
impl Serialize for GraphProjection
impl Eq for GraphProjection
impl StructuralPartialEq for GraphProjection
Auto Trait Implementations§
impl Freeze for GraphProjection
impl RefUnwindSafe for GraphProjection
impl Send for GraphProjection
impl Sync for GraphProjection
impl Unpin for GraphProjection
impl UnsafeUnpin for GraphProjection
impl UnwindSafe for GraphProjection
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