[][src]Enum weresocool_ast::ast::Op

pub enum Op {
    AsIs,
    Id(String),
    Tag(String),
    Fid(String),
    FunctionDef {
        name: String,
        vars: Vec<String>,
        op_or_nf: Box<OpOrNf>,
    },
    FunctionCall {
        name: String,
        args: Vec<OpOrNf>,
    },
    Noise,
    Sine,
    Square,
    AD {
        attack: Rational64,
        decay: Rational64,
        asr: ASR,
    },
    Portamento {
        m: Rational64,
    },
    Reverse,
    FInvert,
    Silence {
        m: Rational64,
    },
    TransposeM {
        m: Rational64,
    },
    TransposeA {
        a: Rational64,
    },
    PanM {
        m: Rational64,
    },
    PanA {
        a: Rational64,
    },
    Gain {
        m: Rational64,
    },
    Length {
        m: Rational64,
    },
    Sequence {
        operations: Vec<OpOrNf>,
    },
    Overlay {
        operations: Vec<OpOrNf>,
    },
    Compose {
        operations: Vec<OpOrNf>,
    },
    Choice {
        operations: Vec<OpOrNf>,
    },
    ModulateBy {
        operations: Vec<OpOrNf>,
    },
    WithLengthRatioOf {
        with_length_of: Box<OpOrNf>,
        main: Box<OpOrNf>,
    },
    Focus {
        name: String,
        main: Box<OpOrNf>,
        op_to_apply: Box<OpOrNf>,
    },
}

Variants

AsIs
Id(String)
Tag(String)
Fid(String)
FunctionDef

Fields of FunctionDef

name: Stringvars: Vec<String>op_or_nf: Box<OpOrNf>
FunctionCall

Fields of FunctionCall

name: Stringargs: Vec<OpOrNf>
Noise
Sine
Square
AD

Fields of AD

attack: Rational64decay: Rational64asr: ASR
Portamento

Fields of Portamento

m: Rational64
Reverse
FInvert
Silence

Fields of Silence

m: Rational64
TransposeM

Fields of TransposeM

m: Rational64
TransposeA

Fields of TransposeA

a: Rational64
PanM

Fields of PanM

m: Rational64
PanA

Fields of PanA

a: Rational64
Gain

Fields of Gain

m: Rational64
Length

Fields of Length

m: Rational64
Sequence

Fields of Sequence

operations: Vec<OpOrNf>
Overlay

Fields of Overlay

operations: Vec<OpOrNf>
Compose

Fields of Compose

operations: Vec<OpOrNf>
Choice

Fields of Choice

operations: Vec<OpOrNf>
ModulateBy

Fields of ModulateBy

operations: Vec<OpOrNf>
WithLengthRatioOf

Fields of WithLengthRatioOf

with_length_of: Box<OpOrNf>main: Box<OpOrNf>
Focus

Fields of Focus

name: Stringmain: Box<OpOrNf>op_to_apply: Box<OpOrNf>

Trait Implementations

impl Clone for Op[src]

impl Debug for Op[src]

impl GetLengthRatio for Op[src]

impl Hash for Op[src]

impl Normalize for Op[src]

impl PartialEq<Op> for Op[src]

impl StructuralPartialEq for Op[src]

impl Substitute for Op[src]

Auto Trait Implementations

impl RefUnwindSafe for Op

impl Send for Op

impl Sync for Op

impl Unpin for Op

impl UnwindSafe for Op

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,