Enum ExprBlockKind
pub enum ExprBlockKind {
Show 33 variants
ArgumentReporterStringNumber {
value: ArgumentReporterName,
},
DataItemnumoflist {
list: DataId<ListKind>,
item: Expression,
},
DataItemoflist {
list: DataId<ListKind>,
index: Expression,
},
DataLengthoflist {
list: DataId<ListKind>,
},
LooksBackdropnumbername {
number_name: DirectDropdownOf<LooksTargetNumbername>,
},
LooksCostumenumbername {
number_name: DirectDropdownOf<LooksTargetNumbername>,
},
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: Either<DropdownMenuOf<SensingDistanceto>, Expression>,
},
SensingCurrent {
currentmenu: DirectDropdownOf<SensingCurrent>,
},
SensingOf {
property: DirectDropdownOf<SensingOfProperty>,
object: Either<DropdownMenuOf<SensingOfObject>, Expression>,
},
SensingUsername,
SensingMousex,
SensingMousey,
SensingLoudness,
SensingTimer,
SoundVolume,
}Variants§
ArgumentReporterStringNumber
Fields
§
value: ArgumentReporterNameDataItemnumoflist
DataItemoflist
DataLengthoflist
LooksBackdropnumbername
Fields
§
number_name: DirectDropdownOf<LooksTargetNumbername>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
Fields
§
property: DirectDropdownOf<SensingOfProperty>§
object: Either<DropdownMenuOf<SensingOfObject>, Expression>SensingUsername
SensingMousex
SensingMousey
SensingLoudness
SensingTimer
SoundVolume
Trait Implementations§
§impl AsOpcodeUnit for ExprBlockKind
impl AsOpcodeUnit for ExprBlockKind
type OpcodeUnit = ExprBlockKindUnit
fn opcode(&self) -> <ExprBlockKind as AsOpcodeUnit>::OpcodeUnit
§impl Clone for ExprBlockKind
impl Clone for ExprBlockKind
§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 more§impl Debug for ExprBlockKind
impl Debug for ExprBlockKind
§impl<'a, S> DoForAttrs<'a, S> for ExprBlockKindwhere
S: DoForAttrsStrategy<'a>,
ArgumentReporterName: DoForAttrs<'a, S>,
DataId<ListKind>: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<LooksTargetNumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<OperatorMathop>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SensingDistanceto>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingCurrent>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingOfProperty>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SensingOfObject>, Expression>: DoForAttrs<'a, S>,
impl<'a, S> DoForAttrs<'a, S> for ExprBlockKindwhere
S: DoForAttrsStrategy<'a>,
ArgumentReporterName: DoForAttrs<'a, S>,
DataId<ListKind>: DoForAttrs<'a, S>,
Expression: DoForAttrs<'a, S>,
DirectDropdownOf<LooksTargetNumbername>: DoForAttrs<'a, S>,
DirectDropdownOf<OperatorMathop>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SensingDistanceto>, Expression>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingCurrent>: DoForAttrs<'a, S>,
DirectDropdownOf<SensingOfProperty>: DoForAttrs<'a, S>,
Either<DropdownMenuOf<SensingOfObject>, Expression>: 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<ExprBlockKind> for BlockKind
impl From<ExprBlockKind> for BlockKind
§fn from(value: ExprBlockKind) -> BlockKind
fn from(value: ExprBlockKind) -> BlockKind
Converts to this type from the input type.
§impl From<ExprBlockKind> for ExprOrCmpBlockKind
impl From<ExprBlockKind> for ExprOrCmpBlockKind
§fn from(value: ExprBlockKind) -> ExprOrCmpBlockKind
fn from(value: ExprBlockKind) -> ExprOrCmpBlockKind
Converts to this type from the input type.
§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