Struct sorceress::synthdef::decoder::SynthDefFile [−][src]
The root of a decoded synth definition file.
Fields
type_id: i32
Four byte file type id containing the ASCII characters: “SCgf”.
This field is not validated by the decoder.
version: i32
The file version, currently 2.
synth_defs: Vec<SynthDef>
The synth definitions contained by this file.
Implementations
impl SynthDefFile
[src]
pub fn decode<R: Read>(read: R) -> Result<SynthDefFile, Error>
[src]
Decodes a synth definition file.
See the module level documentation for more.
Errors
- Returns
Error::IO
if the function encounters an I/O error reading the input. - Returns
Error::BadTypeID
if the type ID field in the file header is incorrect.
Trait Implementations
impl Clone for SynthDefFile
[src]
fn clone(&self) -> SynthDefFile
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SynthDefFile
[src]
impl PartialEq<SynthDefFile> for SynthDefFile
[src]
fn eq(&self, other: &SynthDefFile) -> bool
[src]
fn ne(&self, other: &SynthDefFile) -> bool
[src]
impl PartialOrd<SynthDefFile> for SynthDefFile
[src]
fn partial_cmp(&self, other: &SynthDefFile) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for SynthDefFile
[src]
Auto Trait Implementations
impl RefUnwindSafe for SynthDefFile
impl Send for SynthDefFile
impl Sync for SynthDefFile
impl Unpin for SynthDefFile
impl UnwindSafe for SynthDefFile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,