pub struct EnvRef(/* private fields */);Expand description
A shared reference to an EnvNode: every handle on a node — an Env link,
a Value::Module, an iota’s or object’s prototype — goes through it.
Today it is a bare Rc, but as the one place nodes are allocated, cloned and
compared, it is where to hook instrumentation (see [stats_env]) or to try
another representation (a plain Box, a pool). It must stay one non-null word
so Option<EnvRef> keeps the niche.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EnvRef
impl !Send for EnvRef
impl !Sync for EnvRef
impl !UnwindSafe for EnvRef
impl Freeze for EnvRef
impl Unpin for EnvRef
impl UnsafeUnpin for EnvRef
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