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