Struct flowrs_std::add::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> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.