pub enum StatementKind {
Show 30 variants
Tempo,
Bank {
alias: Option<String>,
},
Print,
Load {
source: String,
alias: String,
},
Use {
name: String,
alias: Option<String>,
},
Let {
name: String,
},
Automate {
target: String,
},
ArrowCall {
target: String,
method: String,
args: Vec<Value>,
},
Function {
name: String,
parameters: Vec<String>,
body: Vec<Statement>,
},
Synth,
Trigger {
entity: String,
duration: Duration,
effects: Option<Value>,
},
Sleep,
Call {
name: String,
args: Vec<Value>,
},
Spawn {
name: String,
args: Vec<Value>,
},
Loop,
Group,
Include(String),
Export {
names: Vec<String>,
source: String,
},
Import {
names: Vec<String>,
source: String,
},
If,
Else,
ElseIf,
Comment,
Indent,
Dedent,
NewLine,
On {
event: String,
args: Option<Vec<Value>>,
body: Vec<Statement>,
},
Emit {
event: String,
payload: Option<Value>,
},
Unknown,
Error {
message: String,
},
}Variants§
Tempo
Bank
Load
Use
Let
Automate
ArrowCall
Function
Synth
Trigger
Sleep
Call
Spawn
Loop
Group
Include(String)
Export
Import
If
Else
ElseIf
Comment
Indent
Dedent
NewLine
On
Emit
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<'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