Props

Struct Props 

Source
pub struct Props<P: SigT<Item = f32>, M: SigT<Item = f32>, F: SigT<Item = f32>> { /* private fields */ }

Implementations§

Source§

impl<P: SigT<Item = f32>, M: SigT<Item = f32>, F: SigT<Item = f32>> Props<P, M, F>

Source

pub fn new(period_s: P) -> Props<P, f32, f32>

Source

pub fn mix_01<X>(self, mix_01: X) -> Props<P, X, F>
where X: SigT<Item = f32>,

Source

pub fn feedback_ratio<X>(self, feedback_ratio: X) -> Props<P, M, X>
where X: SigT<Item = f32>,

Trait Implementations§

Source§

impl<P, M, F> Filter for Props<P, M, F>
where P: SigT<Item = f32>, M: SigT<Item = f32>, F: SigT<Item = f32>,

Source§

type ItemIn = f32

The type of the item of the input signal to this filter.
Source§

type Out<S> = DelayS<S, P, M, F> where S: SigT<Item = Self::ItemIn>

The type of the signal produced by this filter. Filters take an input signal (S) and wrap them it a new signal whose type is this associated type. The output type will usually be generic with a type parameter for the input signal, so this associated type must also have that type parameter.
Source§

fn into_sig<S>(self, sig: S) -> Self::Out<S>
where S: SigT<Item = f32>,

Create a new signal from an existing signal, consuming self in the process.

Auto Trait Implementations§

§

impl<P, M, F> Freeze for Props<P, M, F>
where P: Freeze, M: Freeze, F: Freeze,

§

impl<P, M, F> RefUnwindSafe for Props<P, M, F>

§

impl<P, M, F> Send for Props<P, M, F>
where P: Send, M: Send, F: Send,

§

impl<P, M, F> Sync for Props<P, M, F>
where P: Sync, M: Sync, F: Sync,

§

impl<P, M, F> Unpin for Props<P, M, F>
where P: Unpin, M: Unpin, F: Unpin,

§

impl<P, M, F> UnwindSafe for Props<P, M, F>
where P: UnwindSafe, M: UnwindSafe, F: UnwindSafe,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.
Source§

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

Source§

fn vzip(self) -> V