[][src]Struct oscen::operators::Union

pub struct Union { /* fields omitted */ }

The Union module holds a vector of oscillators and plays one based on the active tag. The level field is used to set the volume of whichever signal is playing.

Implementations

impl Union[src]

pub fn new(waves: Vec<Tag>) -> Self[src]

pub fn waves(&mut self, arg: Vec<Tag>) -> &mut Self[src]

pub fn active(&mut self, arg: Tag) -> &mut Self[src]

pub fn level<T: Into<In>>(&mut self, arg: T) -> &mut Self[src]

Trait Implementations

impl Builder for Union[src]

impl Clone for Union[src]

impl Index<usize> for Union[src]

type Output = Tag

The returned type after indexing.

impl IndexMut<usize> for Union[src]

impl Signal for Union[src]

Auto Trait Implementations

impl RefUnwindSafe for Union

impl Send for Union

impl Sync for Union

impl Unpin for Union

impl UnwindSafe for Union

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,