pub struct ValueDesc {
pub func: FunctionKey,
pub index: OpIndex,
pub typ: ValueType,
pub is_local: bool,
pub stack: Weak<RefCell<Stack>>,
pub stack_base: OpIndex,
}Fields§
§func: FunctionKey§index: OpIndex§typ: ValueType§is_local: bool§stack: Weak<RefCell<Stack>>§stack_base: OpIndexImplementations§
Source§impl ValueDesc
impl ValueDesc
pub fn new( func: FunctionKey, index: OpIndex, typ: ValueType, is_local: bool, ) -> ValueDesc
pub fn clone_with_stack( &self, stack: Weak<RefCell<Stack>>, stack_base: OpIndex, ) -> ValueDesc
pub fn abs_index(&self) -> OpIndex
pub fn load<'a>(&self, stack: &'a Stack) -> Cow<'a, GosValue>
pub fn store(&self, val: GosValue, stack: &mut Stack)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ValueDesc
impl !Send for ValueDesc
impl !Sync for ValueDesc
impl !UnwindSafe for ValueDesc
impl Freeze for ValueDesc
impl Unpin for ValueDesc
impl UnsafeUnpin for ValueDesc
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