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 downgrade(&self) -> WeakUpValue
pub fn desc(&self) -> ValueDesc
pub fn close(&self, val: GosValue)
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§
impl StructuralPartialEq 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