Struct knyst::graph::connection::InputBundle
source · pub struct InputBundle { /* private fields */ }
Expand description
InputBundle
allows you to build connections using a more intuitive less
verbose syntax. Can be converted to a ConnectionBundle
by setting the
sink node using the Self::to
method.
Implementations§
source§impl InputBundle
impl InputBundle
sourcepub fn to(self, node_address: NodeId) -> ConnectionBundle
pub fn to(self, node_address: NodeId) -> ConnectionBundle
Set the sink node to generate a ConnectionBundle
sourcepub fn push_node_outputs(
&mut self,
channel: NodeChannel,
node_outputs: impl IntoIterator<Item = NodeOutput>
)
pub fn push_node_outputs( &mut self, channel: NodeChannel, node_outputs: impl IntoIterator<Item = NodeOutput> )
Add any number of node outputs as inputs to the channel specified.
sourcepub fn push_input(
&mut self,
input_channel: NodeChannel,
source: ConstantOrNodeOutput
)
pub fn push_input( &mut self, input_channel: NodeChannel, source: ConstantOrNodeOutput )
Add an input from a source to the input_channel
Trait Implementations§
source§impl Clone for InputBundle
impl Clone for InputBundle
source§fn clone(&self) -> InputBundle
fn clone(&self) -> InputBundle
Returns a copy 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<const N: usize, O: IntoIterator<Item = NodeOutput>> From<[(&'static str, f32, O); N]> for InputBundle
impl<const N: usize, O: IntoIterator<Item = NodeOutput>> From<[(&'static str, f32, O); N]> for InputBundle
source§impl<const N: usize, O: IntoIterator<Item = NodeOutput>> From<[(usize, f32, O); N]> for InputBundle
impl<const N: usize, O: IntoIterator<Item = NodeOutput>> From<[(usize, f32, O); N]> for InputBundle
source§impl<const N: usize> From<[InputBundle; N]> for InputBundle
impl<const N: usize> From<[InputBundle; N]> for InputBundle
source§fn from(array_of_bundles: [InputBundle; N]) -> Self
fn from(array_of_bundles: [InputBundle; N]) -> Self
Converts to this type from the input type.
source§impl<O: IntoIterator<Item = NodeOutput>> From<(&'static str, f32, O)> for InputBundle
impl<O: IntoIterator<Item = NodeOutput>> From<(&'static str, f32, O)> for InputBundle
source§impl<O: IntoIterator<Item = NodeOutput>> From<(usize, f32, O)> for InputBundle
impl<O: IntoIterator<Item = NodeOutput>> From<(usize, f32, O)> for InputBundle
source§impl From<Vec<InputBundle>> for InputBundle
impl From<Vec<InputBundle>> for InputBundle
source§fn from(vec_of_bundles: Vec<InputBundle>) -> Self
fn from(vec_of_bundles: Vec<InputBundle>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for InputBundle
impl Send for InputBundle
impl Sync for InputBundle
impl Unpin for InputBundle
impl UnwindSafe for InputBundle
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.