[][src]Struct sac_base::operations::math::add::Add

pub struct Add {}

Operation to add two or more inputs together

Methods

impl Add[src]

pub fn new<T>() -> Node<T> where
    T: Copy + Sub<Output = T> + Add<Output = T> + Default
[src]

Generate a new add operation

Example

use sac_base::operations::math::add::Add;
let mut add = Add::new();
let mut vec = Vec::new();
vec.push(1.0);
vec.push(2.0);
vec.push(3.0);
// Sums up the three given inputs.
add.process(vec);
assert_eq!(add.data, 6.0);

Auto Trait Implementations

impl RefUnwindSafe for Add

impl Send for Add

impl Sync for Add

impl Unpin for Add

impl UnwindSafe for Add

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,