pub struct UpValue {
pub inner: Rc<RefCell<UpValueState>>,
}
Fields§
§inner: Rc<RefCell<UpValueState>>
Implementations§
Source§impl UpValue
impl UpValue
pub fn new(d: ValueDesc) -> UpValue
pub fn new_closed(v: GosValue) -> UpValue
pub fn is_open(&self) -> bool
pub fn downgrade(&self) -> WeakUpValue
pub fn desc(&self) -> ValueDesc
pub fn close(&self, val: GosValue)
pub fn value<'a>(&self, stack: &'a Stack) -> Cow<'a, GosValue>
pub fn set_value(&self, val: GosValue, stack: &mut Stack)
Sourcepub fn ref_sub_one(&self)
pub fn ref_sub_one(&self)
for gc
Sourcepub fn mark_dirty(&self, queue: &mut RCQueue)
pub fn mark_dirty(&self, queue: &mut RCQueue)
for gc
Trait Implementations§
Source§impl Ord for UpValue
impl Ord for UpValue
Source§impl PartialOrd for UpValue
impl PartialOrd for UpValue
impl Eq for UpValue
Auto Trait Implementations§
impl Freeze for UpValue
impl !RefUnwindSafe for UpValue
impl !Send for UpValue
impl !Sync for UpValue
impl Unpin for UpValue
impl !UnwindSafe for UpValue
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