pub struct ExecGraphDiff {
pub node_count_changed: bool,
pub topology_changed: bool,
pub non_updatable_nodes: Vec<NodeId>,
pub changed_params: Vec<NodeId>,
}Expand description
The result of diffing an ExecGraph against a ComputeGraph.
Fields§
§node_count_changed: boolThe two graphs have a different number of nodes.
topology_changed: boolThe dependency edge sets differ.
non_updatable_nodes: Vec<NodeId>Nodes whose change is structural / non-updatable (kind change, memcpy size change, fusible-flag change, …).
changed_params: Vec<NodeId>Nodes whose updatable parameters differ (these can be updated).
Implementations§
Source§impl ExecGraphDiff
impl ExecGraphDiff
Sourcepub fn is_identical(&self) -> bool
pub fn is_identical(&self) -> bool
Returns true if the two graphs are structurally and parametrically
identical.
Sourcepub fn is_updatable(&self) -> bool
pub fn is_updatable(&self) -> bool
Returns true if an in-place ExecGraph::update is possible: the
topology matches and every difference is an updatable parameter.
Sourcepub fn reject_reason(&self) -> String
pub fn reject_reason(&self) -> String
Returns a human-readable reason the update was rejected.
Only meaningful when is_updatable is false.
Trait Implementations§
Source§impl Clone for ExecGraphDiff
impl Clone for ExecGraphDiff
Source§fn clone(&self) -> ExecGraphDiff
fn clone(&self) -> ExecGraphDiff
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 ExecGraphDiff
impl Debug for ExecGraphDiff
impl Eq for ExecGraphDiff
Source§impl PartialEq for ExecGraphDiff
impl PartialEq for ExecGraphDiff
impl StructuralPartialEq for ExecGraphDiff
Auto Trait Implementations§
impl Freeze for ExecGraphDiff
impl RefUnwindSafe for ExecGraphDiff
impl Send for ExecGraphDiff
impl Sync for ExecGraphDiff
impl Unpin for ExecGraphDiff
impl UnsafeUnpin for ExecGraphDiff
impl UnwindSafe for ExecGraphDiff
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