pub struct Wavetable<F, const N: usize>where
F: Float,{ /* private fields */ }Implementations§
Source§impl<F, const N: usize> Wavetable<F, N>where
F: Float,
impl<F, const N: usize> Wavetable<F, N>where
F: Float,
pub fn from_fn(a0: F, ab: impl FnMut(usize) -> (F, F)) -> Self
pub fn from_array(a0: F, ab: [(F, F); N]) -> Self
pub fn waveform(&self, theta: F, up_to: usize) -> Option<F>
pub fn truncate<const M: usize>(self) -> Option<Wavetable<F, M>>
pub const fn view(&self) -> WavetableView<'_, F>
Trait Implementations§
Source§impl<F, const N: usize> Ord for Wavetable<F, N>
impl<F, const N: usize> Ord for Wavetable<F, N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F, const N: usize> PartialOrd for Wavetable<F, N>where
F: Float + PartialOrd,
impl<F, const N: usize> PartialOrd for Wavetable<F, N>where
F: Float + PartialOrd,
impl<F, const N: usize> Copy for Wavetable<F, N>
impl<F, const N: usize> Eq for Wavetable<F, N>
impl<F, const N: usize> StructuralPartialEq for Wavetable<F, N>where
F: Float,
Auto Trait Implementations§
impl<F, const N: usize> Freeze for Wavetable<F, N>where
F: Freeze,
impl<F, const N: usize> RefUnwindSafe for Wavetable<F, N>where
F: RefUnwindSafe,
impl<F, const N: usize> Send for Wavetable<F, N>where
F: Send,
impl<F, const N: usize> Sync for Wavetable<F, N>where
F: Sync,
impl<F, const N: usize> Unpin for Wavetable<F, N>where
F: Unpin,
impl<F, const N: usize> UnwindSafe for Wavetable<F, N>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more