[−][src]Struct sac_base::operations::math::add::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]
T: Copy + Sub<Output = T> + Add<Output = T> + Default,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,