pub enum ExprBlockKind {
Show 33 variants
ArgumentReporterStringNumber {
value: ArgumentReporterName,
},
DataItemnumoflist {
list: List,
item: Expression,
},
DataItemoflist {
list: List,
index: Expression,
},
DataLengthoflist {
list: List,
},
LooksBackdropnumbername {
number_name: DirectDropdownOf<LooksBackdropnumbername>,
},
LooksCostumenumbername {
number_name: DirectDropdownOf<LooksCostumenumbername>,
},
LooksSize,
MotionDirection,
MotionIfonedgebounce,
MotionXposition,
MotionYposition,
OperatorAdd {
num1: Expression,
num2: Expression,
},
OperatorMultiply {
num1: Expression,
num2: Expression,
},
OperatorSubtract {
num1: Expression,
num2: Expression,
},
OperatorDivide {
num1: Expression,
num2: Expression,
},
OperatorMod {
num1: Expression,
num2: Expression,
},
OperatorMathop {
operator: DirectDropdownOf<OperatorMathop>,
num: Expression,
},
OperatorRound {
num: Expression,
},
OperatorRandom {
from: Expression,
to: Expression,
},
OperatorLength {
string: Expression,
},
OperatorJoin {
string1: Expression,
string2: Expression,
},
OperatorLetterOf {
letter: Expression,
string: Expression,
},
SensingAnswer,
SensingDayssince2000,
SensingDistanceto {
distancetomenu: RoundDropdownMenuOf<SensingDistanceto>,
},
SensingCurrent {
currentmenu: DirectDropdownOf<SensingCurrent>,
},
SensingOf {
property: DirectDropdownOf<SensingOfProperty>,
object: RoundDropdownMenuOf<SensingOfObject>,
},
SensingUsername,
SensingMousex,
SensingMousey,
SensingLoudness,
SensingTimer,
SoundVolume,
}Variants§
ArgumentReporterStringNumber
Fields
§
value: ArgumentReporterNameDataItemnumoflist
DataItemoflist
DataLengthoflist
LooksBackdropnumbername
Fields
§
number_name: DirectDropdownOf<LooksBackdropnumbername>LooksSize
MotionDirection
MotionIfonedgebounce
MotionXposition
MotionYposition
OperatorAdd
OperatorMultiply
OperatorSubtract
OperatorDivide
OperatorMod
OperatorMathop
OperatorRound
Fields
§
num: ExpressionOperatorRandom
OperatorLength
Fields
§
string: ExpressionOperatorJoin
OperatorLetterOf
SensingAnswer
SensingDayssince2000
assert_eq!("sensing_dayssince2000", ExprBlockKindUnit::SensingDayssince2000.k_opcode_name());SensingDistanceto
Fields
SensingCurrent
Fields
SensingOf
SensingUsername
SensingMousex
SensingMousey
SensingLoudness
SensingTimer
SoundVolume
Trait Implementations§
Source§impl AsOpcodeUnit for ExprBlockKind
impl AsOpcodeUnit for ExprBlockKind
type OpcodeUnit = ExprBlockKindUnit
fn opcode(&self) -> Self::OpcodeUnit
Source§impl Clone for ExprBlockKind
impl Clone for ExprBlockKind
Source§fn clone(&self) -> ExprBlockKind
fn clone(&self) -> ExprBlockKind
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 moreSource§impl Debug for ExprBlockKind
impl Debug for ExprBlockKind
Source§impl<'a, S: DoForAttrsStrategy<'a>> DoForAttrs<'a, S> for ExprBlockKindwhere
ArgumentReporterName: DoForAttrs<'a, S>,
List: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<LooksBackdropnumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<LooksCostumenumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<OperatorMathop>: DoForAttrs<'a, S>,
RoundDropdownMenuOf<SensingDistanceto>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingCurrent>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingOfProperty>: DoForAttrs<'a, S>,
RoundDropdownMenuOf<SensingOfObject>: DoForAttrs<'a, S>,
impl<'a, S: DoForAttrsStrategy<'a>> DoForAttrs<'a, S> for ExprBlockKindwhere
ArgumentReporterName: DoForAttrs<'a, S>,
List: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<LooksBackdropnumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<LooksCostumenumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<OperatorMathop>: DoForAttrs<'a, S>,
RoundDropdownMenuOf<SensingDistanceto>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingCurrent>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingOfProperty>: DoForAttrs<'a, S>,
RoundDropdownMenuOf<SensingOfObject>: DoForAttrs<'a, S>,
Source§impl From<ExprBlockKind> for BlockKind
impl From<ExprBlockKind> for BlockKind
Source§fn from(value: ExprBlockKind) -> Self
fn from(value: ExprBlockKind) -> Self
Converts to this type from the input type.
Source§impl From<ExprBlockKind> for ExprOrCmpBlockKind
impl From<ExprBlockKind> for ExprOrCmpBlockKind
Source§fn from(value: ExprBlockKind) -> Self
fn from(value: ExprBlockKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExprBlockKind
impl PartialEq for ExprBlockKind
impl StructuralPartialEq for ExprBlockKind
Auto Trait Implementations§
impl !Send for ExprBlockKind
impl !Sync for ExprBlockKind
impl Freeze for ExprBlockKind
impl RefUnwindSafe for ExprBlockKind
impl Unpin for ExprBlockKind
impl UnsafeUnpin for ExprBlockKind
impl UnwindSafe for ExprBlockKind
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