pub enum Opcode {
Motion(MotionOpcode),
Looks(LooksOpcode),
Sound(SoundOpcode),
Events(EventsOpcode),
Control(ControlOpcode),
Sensing(SensingOpcode),
Operators(OperatorsOpcode),
Data(DataOpcode),
Procedures(ProceduresOpcode),
}Expand description
This is the Opcode enum, which encompasses all the different opcodes used in Scratch 3.0
blocks.
You can parse an opcode from a string slice using the str::parse method.
Variants§
Motion(MotionOpcode)
Motion opcodes
Looks(LooksOpcode)
Looks opcodes
Sound(SoundOpcode)
Sound opcodes
Events(EventsOpcode)
Events opcodes
Control(ControlOpcode)
Control opcodes
Sensing(SensingOpcode)
Sensing opcodes
Operators(OperatorsOpcode)
Operators opcodes
Data(DataOpcode)
Data opcodes
Procedures(ProceduresOpcode)
My Blocks (Procedures) opcodes
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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