pub enum Representation {
Show 16 variants
Lines,
Atoms,
Spectrum {
max_peaks: usize,
frame_secs: Option<f64>,
},
Envelope {
frame_secs: Option<f64>,
},
Derivative,
Samples,
Ledger {
depth: usize,
},
Pitch {
max_notes: usize,
frame_secs: f64,
},
Formants {
max_formants: usize,
frame_secs: f64,
},
Stereo {
frame_secs: f64,
},
Bands,
Crest,
Loudness,
Alias {
oversample: u32,
},
Bindings,
Flops,
}Variants§
Lines
Atoms
Spectrum
Envelope
Derivative
Samples
Ledger
Pitch
Formants
Stereo
Bands
Crest
Loudness
Alias
Bindings
Flops
Implementations§
Source§impl Representation
impl Representation
pub fn name(self) -> &'static str
Sourcepub fn consumes(self, closed: bool) -> Consumes
pub fn consumes(self, closed: bool) -> Consumes
lines and atoms read a closed form and nothing else. spectrum, envelope,
derivative and pitch read whichever the node holds, so its own Ty decides.
pub fn from_name(name: &str) -> Option<Representation>
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
impl Copy for Representation
Source§impl Debug for Representation
impl Debug for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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