Struct AddNode

Source
pub struct AddNode<I1, I2, O>
where I1: Clone, I2: Clone,
{ pub input_1: Input<I1>, pub input_2: Input<I2>, pub output_1: Output<O>, /* private fields */ }

Fields§

§input_1: Input<I1>§input_2: Input<I2>§output_1: Output<O>

Implementations§

Source§

impl<I1, I2, O> AddNode<I1, I2, O>
where I1: Clone + Add<I2, Output = O> + Send + 'static, I2: Clone + Send + 'static, O: Clone + Send + 'static,

Source

pub fn new(name: &str, context: State<Context>, props: Value) -> Self

Trait Implementations§

Source§

impl<I1, I2, O> Node for AddNode<I1, I2, O>
where I1: Add<I2, Output = O> + Clone + Send + 'static, I2: Clone + Send + 'static, O: Clone + Send + 'static,

Source§

impl<I1, I2, O> RuntimeConnectable for AddNode<I1, I2, O>
where I1: Clone + 'static, I2: Clone + 'static, O: Clone + 'static,

Source§

fn input_at(&self, index: usize) -> Rc<dyn Any>

Source§

fn output_at(&self, index: usize) -> Rc<dyn Any>

Auto Trait Implementations§

§

impl<I1, I2, O> Freeze for AddNode<I1, I2, O>

§

impl<I1, I2, O> RefUnwindSafe for AddNode<I1, I2, O>

§

impl<I1, I2, O> Send for AddNode<I1, I2, O>
where I1: Send, I2: Send, O: Send,

§

impl<I1, I2, O> !Sync for AddNode<I1, I2, O>

§

impl<I1, I2, O> Unpin for AddNode<I1, I2, O>

§

impl<I1, I2, O> UnwindSafe for AddNode<I1, I2, O>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.