pub struct GraphPlan {
pub graph: GraphSpec,
pub topological_order: Vec<NodeId>,
pub parallel_levels: Vec<Vec<NodeId>>,
}Fields§
§graph: GraphSpec§topological_order: Vec<NodeId>§parallel_levels: Vec<Vec<NodeId>>Implementations§
Source§impl GraphPlan
impl GraphPlan
pub fn from_graph(graph: GraphSpec) -> Result<GraphPlan, DagMlError>
pub fn parallel_levels(&self) -> Result<Vec<Vec<NodeId>>, DagMlError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphPlan
impl<'de> Deserialize<'de> for GraphPlan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GraphPlan
impl Serialize for GraphPlan
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GraphPlan
Auto Trait Implementations§
impl Freeze for GraphPlan
impl RefUnwindSafe for GraphPlan
impl Send for GraphPlan
impl Sync for GraphPlan
impl Unpin for GraphPlan
impl UnsafeUnpin for GraphPlan
impl UnwindSafe for GraphPlan
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