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<UpValue> for UpValue
impl PartialOrd<UpValue> for UpValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for UpValue
Auto Trait Implementations§
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