pub struct BindingCell { /* private fields */ }Expand description
A reference-shared mutable binding slot captured from a lexical scope.
Cloned cells point at the same slot, so writes through one handle are visible through every other handle for the same lexical binding. Closure languages use this shape for boxed upvalues and closed-over mutable locals.
Implementations§
Source§impl BindingCell
impl BindingCell
Trait Implementations§
Source§impl Clone for BindingCell
impl Clone for BindingCell
Source§fn clone(&self) -> BindingCell
fn clone(&self) -> BindingCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BindingCell
impl RefUnwindSafe for BindingCell
impl Send for BindingCell
impl Sync for BindingCell
impl Unpin for BindingCell
impl UnsafeUnpin for BindingCell
impl UnwindSafe for BindingCell
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