Struct sorceress::synthdef::decoder::SynthDefFile[][src]

pub struct SynthDefFile {
    pub type_id: i32,
    pub version: i32,
    pub synth_defs: Vec<SynthDef>,
}

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]

impl Debug for SynthDefFile[src]

impl PartialEq<SynthDefFile> for SynthDefFile[src]

impl PartialOrd<SynthDefFile> for SynthDefFile[src]

impl StructuralPartialEq for SynthDefFile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.