pub struct NetworkEdgeBuilder { /* private fields */ }
Expand description
Builder for NetworkEdge
.
Implementations§
Source§impl NetworkEdgeBuilder
impl NetworkEdgeBuilder
Sourcepub fn source_index<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn source_index<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
The source node index.
Sourcepub fn source_output_idx<VALUE: Into<usize>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source_output_idx<VALUE: Into<usize>>( &mut self, value: VALUE, ) -> &mut Self
The output buffer index in the source node.
Sourcepub fn dest_index<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn dest_index<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
The destination node index.
Sourcepub fn dest_input_idx<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn dest_input_idx<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
The input buffer index in the destination node.
Sourcepub fn build(&self) -> Result<NetworkEdge, NetworkEdgeBuilderError>
pub fn build(&self) -> Result<NetworkEdge, NetworkEdgeBuilderError>
Trait Implementations§
Source§impl Clone for NetworkEdgeBuilder
impl Clone for NetworkEdgeBuilder
Source§fn clone(&self) -> NetworkEdgeBuilder
fn clone(&self) -> NetworkEdgeBuilder
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 NetworkEdgeBuilder
impl RefUnwindSafe for NetworkEdgeBuilder
impl Send for NetworkEdgeBuilder
impl Sync for NetworkEdgeBuilder
impl Unpin for NetworkEdgeBuilder
impl UnwindSafe for NetworkEdgeBuilder
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