Skip to main content

StmtBlockKind

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

§

ControlDeleteThisClone

§

ControlForever

Fields

§

ControlIf

§

ControlIfElse

§

ControlRepeat

§

ControlRepeatUntil

§

ControlStartAsClone

§

ControlStop

Fields

§stop_option: DirectDropdownOf<Rc<str>>
§

ControlWait

Fields

§duration: Expression
§

ControlWaitUntil

Fields

§

DataAddtolist

Fields

§

DataChangevariableby

Fields

§

DataDeletealloflist

Fields

§

DataDeleteoflist

Fields

§

DataHidelist

Fields

§

DataHidevariable

Fields

§

DataInsertatlist

Fields

§

DataReplaceitemoflist

Fields

§

DataSetvariableto

Fields

§

DataShowlist

Fields

§

DataShowvariable

Fields

§

EventBroadcast

Fields

§broadcast_input: BroadcastId
§

EventBroadcastandwait

Fields

§broadcast_input: BroadcastId
§

LooksChangeeffectby

§

LooksChangesizeby

Fields

§change: Expression
§

LooksCleargraphiceffects

§

LooksGoforwardbackwardlayers

Fields

§

LooksGotofrontback

§

LooksHide

§

LooksNextcostume

§

LooksNextbackdrop

§

LooksSay

Fields

§message: Expression
§

LooksSayforsecs

Fields

§message: Expression
§

LooksSetsizeto

Fields

§

LooksSeteffectto

§

LooksShow

§

LooksSwitchbackdropto

§

LooksSwitchcostumeto

§

LooksThink

Fields

§message: Expression
§

LooksThinkforsecs

Fields

§message: Expression
§

MotionPointtowards

§

MotionGotoxy

§

MotionTurnright

Fields

§degrees: Expression
§

MotionGoto

§

MotionTurnleft

Fields

§degrees: Expression
§

MotionSetrotationstyle

§

MotionGlidesecstoxy

§

MotionSetx

Fields

§

MotionSety

Fields

§

MotionChangexby

Fields

§

MotionMovesteps

Fields

§

MotionPointindirection

Fields

§direction: Expression
§

MotionChangeyby

Fields

§

MotionGlideto

§

SensingAskandwait

Fields

§question: Expression
§

SensingSetdragmode

§

SoundChangevolumeby

Fields

§volume: Expression
§

SoundStopallsounds

§

SoundChangeeffectby

§

SoundSeteffectto

§

SoundPlayuntildone

§

SoundSetvolumeto

Fields

§volume: Expression
§

SoundCleareffects

§

SoundPlay

§

PenClear

§

PenStamp

§

PenSetPenColorToColor

Fields

§

PenChangePenColorParamBy

Fields

§

PenSetPenColorParamTo

Fields

§

PenChangePenSizeBy

Fields

§

PenUp

§

PenDown

§

PenSetPenSizeTo

Fields

§

ProceduresCall

Fields

§procedure_id: ProcedureId
§warp: bool
§

Text2SpeechSetVoice

§

Text2SpeechSetLanguage

§

Text2SpeechSpeakAndWait

Fields

Trait Implementations§

§

impl AsOpcodeUnit for StmtBlockKind

§

impl Clone for 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)

Performs copy-assignment from source. Read more
§

impl Debug for StmtBlockKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a, S> DoForAttrs<'a, S> for StmtBlockKind

§

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

§

fn from(value: StmtBlockKind) -> BlockKind

Converts to this type from the input type.
§

impl PartialEq for StmtBlockKind

§

fn eq(&self, other: &StmtBlockKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for StmtBlockKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.