pub struct MountedGraph { /* private fields */ }Expand description
Lowered graph plus mounted-node handles for direct updates.
Implementations§
Source§impl MountedGraph
impl MountedGraph
Sourcepub fn batch(&self) -> &InstructionBatch
pub fn batch(&self) -> &InstructionBatch
Returns the full instruction batch for the mounted graph.
Sourcepub fn into_batch(self) -> InstructionBatch
pub fn into_batch(self) -> InstructionBatch
Consumes the mounted graph and returns its instruction batch.
Sourcepub fn roots(&self) -> &[MountedNode]
pub fn roots(&self) -> &[MountedNode]
Returns the mounted root nodes in channel order.
Sourcepub fn node_at(&self, path: &[usize]) -> Option<MountedNode>
pub fn node_at(&self, path: &[usize]) -> Option<MountedNode>
Returns a mounted node by structural path.
Sourcepub fn node_with_key(&self, key: &str) -> Option<MountedNode>
pub fn node_with_key(&self, key: &str) -> Option<MountedNode>
Returns a mounted node by author-supplied key.
Sourcepub fn all_nodes(&self) -> impl Iterator<Item = (&[usize], &MountedNode)>
pub fn all_nodes(&self) -> impl Iterator<Item = (&[usize], &MountedNode)>
Returns an iterator over all mounted nodes with their structural paths.
Sourcepub fn set_const_value(&self, key: &str, value: f64) -> Option<InstructionBatch>
pub fn set_const_value(&self, key: &str, value: f64) -> Option<InstructionBatch>
Convenience for updating a keyed const node’s numeric value.
Trait Implementations§
Source§impl Clone for MountedGraph
impl Clone for MountedGraph
Source§fn clone(&self) -> MountedGraph
fn clone(&self) -> MountedGraph
Returns a duplicate of the value. Read more
1.0.0 · 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 MountedGraph
impl Debug for MountedGraph
Source§impl Default for MountedGraph
impl Default for MountedGraph
Source§fn default() -> MountedGraph
fn default() -> MountedGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MountedGraph
impl RefUnwindSafe for MountedGraph
impl Send for MountedGraph
impl Sync for MountedGraph
impl Unpin for MountedGraph
impl UnwindSafe for MountedGraph
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