pub struct NetworkEdge { /* private fields */ }
Expand description
Represents an edge in the DAG, connecting one node’s output to another node’s input.
Implementations§
Source§impl NetworkEdge
impl NetworkEdge
Sourcepub fn source_index_mut(&mut self) -> &mut usize
pub fn source_index_mut(&mut self) -> &mut usize
The source node index.
Sourcepub fn source_output_idx_mut(&mut self) -> &mut usize
pub fn source_output_idx_mut(&mut self) -> &mut usize
The output buffer index in the source node.
Sourcepub fn dest_index_mut(&mut self) -> &mut usize
pub fn dest_index_mut(&mut self) -> &mut usize
The destination node index.
Sourcepub fn dest_input_idx_mut(&mut self) -> &mut usize
pub fn dest_input_idx_mut(&mut self) -> &mut usize
The input buffer index in the destination node.
Source§impl NetworkEdge
impl NetworkEdge
Sourcepub fn set_source_index(&mut self, val: usize) -> &mut Self
pub fn set_source_index(&mut self, val: usize) -> &mut Self
The source node index.
Sourcepub fn set_source_output_idx(&mut self, val: usize) -> &mut Self
pub fn set_source_output_idx(&mut self, val: usize) -> &mut Self
The output buffer index in the source node.
Sourcepub fn set_dest_index(&mut self, val: usize) -> &mut Self
pub fn set_dest_index(&mut self, val: usize) -> &mut Self
The destination node index.
Sourcepub fn set_dest_input_idx(&mut self, val: usize) -> &mut Self
pub fn set_dest_input_idx(&mut self, val: usize) -> &mut Self
The input buffer index in the destination node.
Source§impl NetworkEdge
impl NetworkEdge
Sourcepub fn source_index(&self) -> &usize
pub fn source_index(&self) -> &usize
The source node index.
Sourcepub fn source_output_idx(&self) -> &usize
pub fn source_output_idx(&self) -> &usize
The output buffer index in the source node.
Sourcepub fn dest_index(&self) -> &usize
pub fn dest_index(&self) -> &usize
The destination node index.
Sourcepub fn dest_input_idx(&self) -> &usize
pub fn dest_input_idx(&self) -> &usize
The input buffer index in the destination node.
Trait Implementations§
Source§impl Clone for NetworkEdge
impl Clone for NetworkEdge
Source§fn clone(&self) -> NetworkEdge
fn clone(&self) -> NetworkEdge
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 moreAuto Trait Implementations§
impl Freeze for NetworkEdge
impl RefUnwindSafe for NetworkEdge
impl Send for NetworkEdge
impl Sync for NetworkEdge
impl Unpin for NetworkEdge
impl UnwindSafe for NetworkEdge
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