pub enum LIRInstrKind {
Show 28 variants
SetScore(MutableScoreValue, ScoreValue),
AddScore(MutableScoreValue, ScoreValue),
SubScore(MutableScoreValue, ScoreValue),
MulScore(MutableScoreValue, ScoreValue),
DivScore(MutableScoreValue, ScoreValue),
ModScore(MutableScoreValue, ScoreValue),
MinScore(MutableScoreValue, ScoreValue),
MaxScore(MutableScoreValue, ScoreValue),
SwapScore(MutableScoreValue, MutableScoreValue),
ResetScore(MutableScoreValue),
SetData(MutableNBTValue, NBTValue),
MergeData(MutableNBTValue, NBTValue),
GetScore(MutableScoreValue),
GetData(MutableNBTValue, Double),
GetConst(i32),
PushData(MutableNBTValue, NBTValue),
PushFrontData(MutableNBTValue, NBTValue),
InsertData(MutableNBTValue, NBTValue, i32),
RemoveData(MutableNBTValue),
Use(MutableValue),
NoOp,
Call(ResourceLocation, Vec<Identifier>),
ReturnValue(i32),
ReturnFail,
ReturnRun(Box<LIRInstruction>),
Command(String),
Comment(String),
MC(MinecraftInstr),
}Variants§
SetScore(MutableScoreValue, ScoreValue)
AddScore(MutableScoreValue, ScoreValue)
SubScore(MutableScoreValue, ScoreValue)
MulScore(MutableScoreValue, ScoreValue)
DivScore(MutableScoreValue, ScoreValue)
ModScore(MutableScoreValue, ScoreValue)
MinScore(MutableScoreValue, ScoreValue)
MaxScore(MutableScoreValue, ScoreValue)
SwapScore(MutableScoreValue, MutableScoreValue)
ResetScore(MutableScoreValue)
SetData(MutableNBTValue, NBTValue)
MergeData(MutableNBTValue, NBTValue)
GetScore(MutableScoreValue)
GetData(MutableNBTValue, Double)
GetConst(i32)
PushData(MutableNBTValue, NBTValue)
PushFrontData(MutableNBTValue, NBTValue)
InsertData(MutableNBTValue, NBTValue, i32)
RemoveData(MutableNBTValue)
Use(MutableValue)
NoOp
Call(ResourceLocation, Vec<Identifier>)
ReturnValue(i32)
ReturnFail
ReturnRun(Box<LIRInstruction>)
Command(String)
Comment(String)
MC(MinecraftInstr)
Implementations§
Source§impl LIRInstrKind
impl LIRInstrKind
pub fn get_simple_sb_op_lhs(&self) -> Option<&MutableScoreValue>
pub fn get_op_rhs_reg_mut(&mut self) -> Option<&mut Identifier>
pub fn replace_mut_score_vals<'a, F: Fn(&'a mut MutableScoreValue)>( &'a mut self, f: &F, )
pub fn get_read_score_arg(&self) -> Option<&ArgRetIndex>
Trait Implementations§
Source§impl Clone for LIRInstrKind
impl Clone for LIRInstrKind
Source§fn clone(&self) -> LIRInstrKind
fn clone(&self) -> LIRInstrKind
Returns a duplicate of the value. Read more
1.0.0 · 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 LIRInstrKind
impl Debug for LIRInstrKind
Source§impl GetUsedRegs for LIRInstrKind
impl GetUsedRegs for LIRInstrKind
fn append_used_regs<'a>(&'a self, regs: &mut Vec<&'a Identifier>)
fn get_used_regs(&self) -> Vec<&Identifier> ⓘ
Auto Trait Implementations§
impl Freeze for LIRInstrKind
impl RefUnwindSafe for LIRInstrKind
impl Send for LIRInstrKind
impl Sync for LIRInstrKind
impl Unpin for LIRInstrKind
impl UnwindSafe for LIRInstrKind
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