pub enum StatementKind {
Show 38 variants
Tempo,
Print,
Pattern {
name: String,
target: Option<String>,
},
Trigger {
entity: String,
duration: DurationValue,
effects: Option<Value>,
},
Sleep,
Call {
name: String,
args: Vec<Value>,
},
Load {
source: String,
alias: String,
},
Use {
name: String,
alias: Option<String>,
},
Automate {
target: String,
},
ArrowCall {
target: String,
method: String,
args: Vec<Value>,
},
Function {
name: String,
parameters: Vec<String>,
body: Vec<Statement>,
},
Assign {
target: String,
property: String,
},
Synth,
Bank {
name: String,
alias: Option<String>,
},
Let {
name: String,
value: Option<Value>,
},
Var {
name: String,
value: Option<Value>,
},
Const {
name: String,
value: Option<Value>,
},
Group {
name: String,
body: Vec<Statement>,
},
Spawn {
name: String,
args: Vec<Value>,
},
Loop {
count: Value,
body: Vec<Statement>,
},
For {
variable: String,
iterable: Value,
body: Vec<Statement>,
},
Routing,
Bind {
source: String,
target: String,
},
FxPipeline {
effects: Vec<Value>,
subject: String,
},
Node {
name: String,
},
Sidechain {
source: String,
effect: Value,
target: Option<String>,
},
Include(String),
Export {
names: Vec<String>,
source: String,
},
Import {
names: Vec<String>,
source: String,
},
On {
event: String,
args: Option<Vec<Value>>,
body: Vec<Statement>,
},
Emit {
event: String,
payload: Option<Value>,
},
If {
condition: Value,
body: Vec<Statement>,
else_body: Option<Vec<Statement>>,
},
Comment,
Indent,
Dedent,
NewLine,
Unknown,
Error {
message: String,
},
}Variants§
Tempo
Pattern
Trigger
Sleep
Call
Load
Use
Automate
ArrowCall
Function
Assign
Synth
Bank
Let
Var
Const
Group
Spawn
Loop
For
Routing
Bind
FxPipeline
Node
Sidechain
Include(String)
Export
Import
On
Emit
If
Comment
Indent
Dedent
NewLine
Unknown
Error
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatementKind
impl Debug for StatementKind
Source§impl Default for StatementKind
impl Default for StatementKind
Source§impl<'de> Deserialize<'de> for StatementKind
impl<'de> Deserialize<'de> for StatementKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
Source§impl Serialize for StatementKind
impl Serialize for StatementKind
impl StructuralPartialEq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnwindSafe for StatementKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more