pub enum Value {
Mutable(MutableValue),
Constant(DataTypeContents),
}Variants§
Mutable(MutableValue)
Constant(DataTypeContents)
Implementations§
source§impl Value
impl Value
pub fn get_ty( &self, regs: &RegisterList, sig: &FunctionSignature ) -> Result<DataType>
pub fn get_used_regs_mut(&mut self) -> Vec<&mut Identifier>
pub fn to_score_value(self) -> Result<ScoreValue>
pub fn to_nbt_value(self) -> Result<NBTValue>
pub fn iter_mut_val(&mut self) -> Option<&mut MutableValue>
pub fn is_value_eq(&self, other: &Self) -> bool
Trait Implementations§
source§impl GetUsedRegs for Value
impl GetUsedRegs for Value
fn append_used_regs<'a>(&'a self, regs: &mut Vec<&'a Identifier>)
fn get_used_regs(&self) -> Vec<&Identifier>
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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