pub enum StatementKind {
Show 21 variants
Binding {
target: LocalSlot,
expression: ExprId,
},
LocalUpdate {
target: LocalSlot,
expression: ExprId,
},
StateDeclaration {
target: StateSlot,
initial: ExprId,
call_site: CallSiteId,
},
StateUpdate {
target: StateSlot,
expression: ExprId,
},
Plot {
plot: PlotId,
expression: ExprId,
color: Option<ExprId>,
},
Marker {
id: String,
expression: ExprId,
visible: Option<ExprId>,
color: Option<ExprId>,
text: Option<String>,
},
Segment {
id: String,
start_value: ExprId,
end_value: ExprId,
start_index: ExprId,
end_index: ExprId,
visible: Option<ExprId>,
color: Option<ExprId>,
text: Option<String>,
},
Region {Show 17 fields
id: String,
key: ExprId,
upper: ExprId,
lower: ExprId,
left_index: ExprId,
right_index: ExprId,
visible: Option<ExprId>,
border_color: Option<ExprId>,
fill_color: Option<ExprId>,
border_color_slot: Option<String>,
fill_color_slot: Option<String>,
style_by: Option<ExprId>,
true_color_slot: Option<String>,
false_color_slot: Option<String>,
extend_right: Option<ExprId>,
persistent: bool,
width: f32,
},
RegionRemove {
id: String,
key: ExprId,
},
HorizontalLevel {
id: String,
expression: ExprId,
color: Option<ExprId>,
},
OhlcPlot {
plot: PlotId,
open: ExprId,
high: ExprId,
low: ExprId,
close: ExprId,
color: Option<ExprId>,
},
RangePlot {
plot: PlotId,
upper: ExprId,
lower: ExprId,
color: Option<ExprId>,
},
Expression(ExprId),
If {
condition: ExprId,
then_branch: Vec<StatementId>,
else_branch: Vec<StatementId>,
},
While {
condition: ExprId,
body: Vec<StatementId>,
},
ForRange {
target: LocalSlot,
start: ExprId,
end: ExprId,
body: Vec<StatementId>,
},
ForEach {
target: LocalSlot,
collection: ExprId,
body: Vec<StatementId>,
},
Break,
Continue,
Return(Option<ExprId>),
Destructure {
targets: Vec<LocalSlot>,
expression: ExprId,
},
}Variants§
Binding
LocalUpdate
StateDeclaration
StateUpdate
Plot
Marker
Fields
Segment
Fields
Region
Fields
RegionRemove
HorizontalLevel
OhlcPlot
RangePlot
Expression(ExprId)
If
While
ForRange
ForEach
Break
Continue
Return(Option<ExprId>)
Destructure
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§impl Debug for StatementKind
impl Debug for StatementKind
Source§impl PartialEq for StatementKind
impl PartialEq 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 UnsafeUnpin 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