pub struct DependencyGraphInput {
pub nodes: Vec<NodeInput>,
pub edges: Vec<EdgeInput>,
}Expand description
Input graph for pure-compute functions.
§Examples
use sdivi_core::input::{DependencyGraphInput, NodeInput, EdgeInput};
let g = DependencyGraphInput { nodes: vec![], edges: vec![] };
assert_eq!(g.nodes.len(), 0);Fields§
§nodes: Vec<NodeInput>All nodes; order determines 0-based numeric indices used in edges.
edges: Vec<EdgeInput>All directed edges referencing node IDs.
Trait Implementations§
Source§impl Clone for DependencyGraphInput
impl Clone for DependencyGraphInput
Source§fn clone(&self) -> DependencyGraphInput
fn clone(&self) -> DependencyGraphInput
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 DependencyGraphInput
impl Debug for DependencyGraphInput
Source§impl<'de> Deserialize<'de> for DependencyGraphInput
impl<'de> Deserialize<'de> for DependencyGraphInput
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 PartialEq for DependencyGraphInput
impl PartialEq for DependencyGraphInput
Source§fn eq(&self, other: &DependencyGraphInput) -> bool
fn eq(&self, other: &DependencyGraphInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DependencyGraphInput
impl Serialize for DependencyGraphInput
impl StructuralPartialEq for DependencyGraphInput
Auto Trait Implementations§
impl Freeze for DependencyGraphInput
impl RefUnwindSafe for DependencyGraphInput
impl Send for DependencyGraphInput
impl Sync for DependencyGraphInput
impl Unpin for DependencyGraphInput
impl UnsafeUnpin for DependencyGraphInput
impl UnwindSafe for DependencyGraphInput
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