Enum StmtBlockKind
pub enum StmtBlockKind {
Show 78 variants
ControlCreateCloneOf {
clone_option: Either<DropdownMenuOf<ChooseClone>, Expression>,
},
ControlDeleteThisClone,
ControlForever {
substack: Option<RefBlock<Vec<StmtBlockKind>>>,
},
ControlIf {
condition: Option<RefBlock<CmpBlockKind>>,
substack: Option<RefBlock<Vec<StmtBlockKind>>>,
},
ControlIfElse {
condition: Option<RefBlock<CmpBlockKind>>,
substack: Option<RefBlock<Vec<StmtBlockKind>>>,
substack2: Option<RefBlock<Vec<StmtBlockKind>>>,
},
ControlRepeat {
times: Expression,
substack: Option<RefBlock<Vec<StmtBlockKind>>>,
},
ControlRepeatUntil {
condition: Option<RefBlock<CmpBlockKind>>,
substack: Option<RefBlock<Vec<StmtBlockKind>>>,
},
ControlStartAsClone,
ControlStop {
stop_option: DirectDropdownOf<Rc<str>>,
},
ControlWait {
duration: Expression,
},
ControlWaitUntil {
condition: Option<RefBlock<CmpBlockKind>>,
},
DataAddtolist {
list: DataId<ListKind>,
item: Expression,
},
DataChangevariableby {
variable: DataId<VariableKind>,
value: Expression,
},
DataDeletealloflist {
list: DataId<ListKind>,
},
DataDeleteoflist {
list: DataId<ListKind>,
index: Expression,
},
DataHidelist {
list: DataId<ListKind>,
},
DataHidevariable {
variable: DataId<VariableKind>,
},
DataInsertatlist {
list: DataId<ListKind>,
index: Expression,
item: Expression,
},
DataReplaceitemoflist {
list: DataId<ListKind>,
index: Expression,
item: Expression,
},
DataSetvariableto {
variable: DataId<VariableKind>,
value: Expression,
},
DataShowlist {
list: DataId<ListKind>,
},
DataShowvariable {
variable: DataId<VariableKind>,
},
EventBroadcast {
broadcast_input: BroadcastId,
},
EventBroadcastandwait {
broadcast_input: BroadcastId,
},
LooksChangeeffectby {
effect: DirectDropdownOf<LooksEffect>,
change: Expression,
},
LooksChangesizeby {
change: Expression,
},
LooksCleargraphiceffects,
LooksGoforwardbackwardlayers {
forward_backward: DirectDropdownOf<ForwardBackward>,
num: Expression,
},
LooksGotofrontback {
front_back: DirectDropdownOf<LooksGotoFrontBack>,
},
LooksHide,
LooksNextcostume,
LooksNextbackdrop,
LooksSay {
message: Expression,
},
LooksSayforsecs {
message: Expression,
secs: Expression,
},
LooksSetsizeto {
size: Expression,
},
LooksSeteffectto {
effect: DirectDropdownOf<LooksEffect>,
value: Expression,
},
LooksShow,
LooksSwitchbackdropto {
backdrop: Either<DropdownMenuOf<LooksBackdrops>, Expression>,
},
LooksSwitchcostumeto {
costume: Either<DropdownMenuOf<LooksCostume>, Expression>,
},
LooksThink {
message: Expression,
},
LooksThinkforsecs {
message: Expression,
secs: Expression,
},
MotionPointtowards {
towards: Either<DropdownMenuOf<MotionPointtowards>, Expression>,
},
MotionGotoxy {
x: Expression,
y: Expression,
},
MotionTurnright {
degrees: Expression,
},
MotionGoto {
to: Either<DropdownMenuOf<PossibleGoToPos>, Expression>,
},
MotionTurnleft {
degrees: Expression,
},
MotionSetrotationstyle {
style: DirectDropdownOf<MotionRotationstyle>,
},
MotionGlidesecstoxy {
secs: Expression,
x: Expression,
y: Expression,
},
MotionSetx {
x: Expression,
},
MotionSety {
y: Expression,
},
MotionChangexby {
dx: Expression,
},
MotionMovesteps {
steps: Expression,
},
MotionPointindirection {
direction: Expression,
},
MotionChangeyby {
dy: Expression,
},
MotionGlideto {
secs: Expression,
to: Either<DropdownMenuOf<PossibleGlideToPos>, Expression>,
},
SensingAskandwait {
question: Expression,
},
SensingSetdragmode {
drag_mode: DirectDropdownOf<SensingDragmode>,
},
SoundChangevolumeby {
volume: Expression,
},
SoundStopallsounds,
SoundChangeeffectby {
effect: DirectDropdownOf<SoundEffect>,
value: Expression,
},
SoundSeteffectto {
effect: DirectDropdownOf<SoundEffect>,
value: Expression,
},
SoundPlayuntildone {
sound_menu: Either<DropdownMenuOf<SoundSounds>, Expression>,
},
SoundSetvolumeto {
volume: Expression,
},
SoundCleareffects,
SoundPlay {
sound_menu: Either<DropdownMenuOf<SoundSounds>, Expression>,
},
PenClear,
PenStamp,
PenSetPenColorToColor {
color: Either<Color, Expression>,
},
PenChangePenColorParamBy {
color_param: DropdownMenuOf<PenColorParam>,
value: Expression,
},
PenSetPenColorParamTo {
color_param: DropdownMenuOf<PenColorParam>,
value: Expression,
},
PenChangePenSizeBy {
size: Expression,
},
PenUp,
PenDown,
PenSetPenSizeTo {
size: Expression,
},
ProceduresCall {
procedure_id: ProcedureId,
arguments: HashMap<ProcedureArgumentId, Option<Expression>>,
warp: bool,
},
Text2SpeechSetVoice {
voice: DropdownMenuOf<Text2SpeechVoices>,
},
Text2SpeechSetLanguage {
language: DropdownMenuOf<Text2SpeechLanguages>,
},
Text2SpeechSpeakAndWait {
words: Expression,
},
}Variants§
ControlCreateCloneOf
Fields
§
clone_option: Either<DropdownMenuOf<ChooseClone>, Expression>ControlDeleteThisClone
ControlForever
Fields
§
substack: Option<RefBlock<Vec<StmtBlockKind>>>ControlIf
ControlIfElse
Fields
§
condition: Option<RefBlock<CmpBlockKind>>§
substack: Option<RefBlock<Vec<StmtBlockKind>>>§
substack2: Option<RefBlock<Vec<StmtBlockKind>>>ControlRepeat
ControlRepeatUntil
ControlStartAsClone
ControlStop
Fields
§
stop_option: DirectDropdownOf<Rc<str>>ControlWait
Fields
§
duration: ExpressionControlWaitUntil
Fields
§
condition: Option<RefBlock<CmpBlockKind>>DataAddtolist
DataChangevariableby
DataDeletealloflist
DataDeleteoflist
DataHidelist
DataHidevariable
Fields
§
variable: DataId<VariableKind>DataInsertatlist
DataReplaceitemoflist
DataSetvariableto
DataShowlist
DataShowvariable
Fields
§
variable: DataId<VariableKind>EventBroadcast
Fields
§
broadcast_input: BroadcastIdEventBroadcastandwait
Fields
§
broadcast_input: BroadcastIdLooksChangeeffectby
LooksChangesizeby
Fields
§
change: ExpressionLooksCleargraphiceffects
LooksGoforwardbackwardlayers
LooksGotofrontback
Fields
§
front_back: DirectDropdownOf<LooksGotoFrontBack>LooksHide
LooksNextcostume
LooksNextbackdrop
LooksSay
Fields
§
message: ExpressionLooksSayforsecs
LooksSetsizeto
Fields
§
size: ExpressionLooksSeteffectto
LooksShow
LooksSwitchbackdropto
Fields
§
backdrop: Either<DropdownMenuOf<LooksBackdrops>, Expression>LooksSwitchcostumeto
Fields
§
costume: Either<DropdownMenuOf<LooksCostume>, Expression>LooksThink
Fields
§
message: ExpressionLooksThinkforsecs
MotionPointtowards
Fields
§
towards: Either<DropdownMenuOf<MotionPointtowards>, Expression>MotionGotoxy
MotionTurnright
Fields
§
degrees: ExpressionMotionGoto
Fields
MotionTurnleft
Fields
§
degrees: ExpressionMotionSetrotationstyle
Fields
§
style: DirectDropdownOf<MotionRotationstyle>MotionGlidesecstoxy
MotionSetx
Fields
§
x: ExpressionMotionSety
Fields
§
y: ExpressionMotionChangexby
Fields
§
dx: ExpressionMotionMovesteps
Fields
§
steps: ExpressionMotionPointindirection
Fields
§
direction: ExpressionMotionChangeyby
Fields
§
dy: ExpressionMotionGlideto
SensingAskandwait
Fields
§
question: ExpressionSensingSetdragmode
Fields
§
drag_mode: DirectDropdownOf<SensingDragmode>SoundChangevolumeby
Fields
§
volume: ExpressionSoundStopallsounds
SoundChangeeffectby
SoundSeteffectto
SoundPlayuntildone
Fields
SoundSetvolumeto
Fields
§
volume: ExpressionSoundCleareffects
SoundPlay
Fields
PenClear
PenStamp
PenSetPenColorToColor
Fields
§
color: Either<Color, Expression>PenChangePenColorParamBy
PenSetPenColorParamTo
PenChangePenSizeBy
Fields
§
size: ExpressionPenUp
PenDown
PenSetPenSizeTo
Fields
§
size: ExpressionProceduresCall
Text2SpeechSetVoice
Fields
§
voice: DropdownMenuOf<Text2SpeechVoices>Text2SpeechSetLanguage
Fields
§
language: DropdownMenuOf<Text2SpeechLanguages>Text2SpeechSpeakAndWait
Fields
§
words: ExpressionTrait Implementations§
§impl AsOpcodeUnit for StmtBlockKind
impl AsOpcodeUnit for StmtBlockKind
type OpcodeUnit = StmtBlockKindUnit
fn opcode(&self) -> <StmtBlockKind as AsOpcodeUnit>::OpcodeUnit
§impl Clone for StmtBlockKind
impl Clone for StmtBlockKind
§fn clone(&self) -> StmtBlockKind
fn clone(&self) -> StmtBlockKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StmtBlockKind
impl Debug for StmtBlockKind
§impl<'a, S> DoForAttrs<'a, S> for StmtBlockKindwhere
S: DoForAttrsStrategy<'a>,
Either<DropdownMenuOf<ChooseClone>, Expression>: DoForAttrs<'a, S>,
Option<RefBlock<Vec<StmtBlockKind>>>: DoForAttrs<'a, S>,
Option<RefBlock<CmpBlockKind>>: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<Rc<str>>: DoForAttrs<'a, S>,
DataId<ListKind>: DoForAttrs<'a, S>,
DataId<VariableKind>: DoForAttrs<'a, S>,
BroadcastId: DoForAttrs<'a, S>,
DirectDropdownOf<LooksEffect>: DoForAttrs<'a, S>,
DirectDropdownOf<ForwardBackward>: DoForAttrs<'a, S>,
DirectDropdownOf<LooksGotoFrontBack>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<LooksBackdrops>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<LooksCostume>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<MotionPointtowards>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<PossibleGoToPos>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<MotionRotationstyle>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<PossibleGlideToPos>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingDragmode>: DoForAttrs<'a, S>,
DirectDropdownOf<SoundEffect>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SoundSounds>, Expression>: DoForAttrs<'a, S>,
Either<Color, Expression>: DoForAttrs<'a, S>,
DropdownMenuOf<PenColorParam>: DoForAttrs<'a, S>,
ProcedureId: DoForAttrs<'a, S>,
HashMap<ProcedureArgumentId, Option<Expression>>: DoForAttrs<'a, S>,
bool: DoForAttrs<'a, S>,
DropdownMenuOf<Text2SpeechVoices>: DoForAttrs<'a, S>,
DropdownMenuOf<Text2SpeechLanguages>: DoForAttrs<'a, S>,
impl<'a, S> DoForAttrs<'a, S> for StmtBlockKindwhere
S: DoForAttrsStrategy<'a>,
Either<DropdownMenuOf<ChooseClone>, Expression>: DoForAttrs<'a, S>,
Option<RefBlock<Vec<StmtBlockKind>>>: DoForAttrs<'a, S>,
Option<RefBlock<CmpBlockKind>>: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<Rc<str>>: DoForAttrs<'a, S>,
DataId<ListKind>: DoForAttrs<'a, S>,
DataId<VariableKind>: DoForAttrs<'a, S>,
BroadcastId: DoForAttrs<'a, S>,
DirectDropdownOf<LooksEffect>: DoForAttrs<'a, S>,
DirectDropdownOf<ForwardBackward>: DoForAttrs<'a, S>,
DirectDropdownOf<LooksGotoFrontBack>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<LooksBackdrops>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<LooksCostume>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<MotionPointtowards>, Expression>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<PossibleGoToPos>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<MotionRotationstyle>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<PossibleGlideToPos>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingDragmode>: DoForAttrs<'a, S>,
DirectDropdownOf<SoundEffect>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SoundSounds>, Expression>: DoForAttrs<'a, S>,
Either<Color, Expression>: DoForAttrs<'a, S>,
DropdownMenuOf<PenColorParam>: DoForAttrs<'a, S>,
ProcedureId: DoForAttrs<'a, S>,
HashMap<ProcedureArgumentId, Option<Expression>>: DoForAttrs<'a, S>,
bool: DoForAttrs<'a, S>,
DropdownMenuOf<Text2SpeechVoices>: DoForAttrs<'a, S>,
DropdownMenuOf<Text2SpeechLanguages>: DoForAttrs<'a, S>,
fn do_for_attrs( &'a self, inputs_that_are_passed_to_all_attributes: &<S as DoForAttrsStrategy<'a>>::Inputs, outputs_received_by_all_attributes: &mut <S as DoForAttrsStrategy<'a>>::Outputs, ) -> Result<(), <S as DoForAttrsStrategy<'a>>::Error>
§impl From<StmtBlockKind> for BlockKind
impl From<StmtBlockKind> for BlockKind
§fn from(value: StmtBlockKind) -> BlockKind
fn from(value: StmtBlockKind) -> BlockKind
Converts to this type from the input type.
§impl PartialEq for StmtBlockKind
impl PartialEq for StmtBlockKind
impl StructuralPartialEq for StmtBlockKind
Auto Trait Implementations§
impl !Send for StmtBlockKind
impl !Sync for StmtBlockKind
impl Freeze for StmtBlockKind
impl RefUnwindSafe for StmtBlockKind
impl Unpin for StmtBlockKind
impl UnsafeUnpin for StmtBlockKind
impl UnwindSafe for StmtBlockKind
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<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