pub enum Cast {
Sample,
Fourier,
IFourier,
Stft {
window: usize,
hop: usize,
},
Istft,
}Variants§
Implementations§
Source§impl Cast
impl Cast
pub const NAMES: [&'static str; 5]
pub fn from_name(name: &str, named: &[(&'_ str, f64)]) -> Option<Cast>
pub fn name(self) -> &'static str
Sourcepub fn check_arguments(self) -> Result<(), Mismatch>
pub fn check_arguments(self) -> Result<(), Mismatch>
A window and a hop belong to the cast, so they are checked where the call is written.
pub fn resolve(self, args: &[Ty]) -> Result<Ty, Mismatch>
Trait Implementations§
impl Copy for Cast
impl Eq for Cast
impl StructuralPartialEq for Cast
Auto Trait Implementations§
impl Freeze for Cast
impl RefUnwindSafe for Cast
impl Send for Cast
impl Sync for Cast
impl Unpin for Cast
impl UnsafeUnpin for Cast
impl UnwindSafe for Cast
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