pub struct EvalContext {
pub in_method: bool,
pub in_derived_constructor: bool,
}Expand description
What the code that called a direct eval allows its body to use.
Fields§
§in_method: boolThe caller is a method (or a nested arrow in one), so super.x is legal — the
eval’d code runs with the caller’s [[HomeObject]].
in_derived_constructor: boolThe caller is a derived class constructor, so super() is legal too.
Trait Implementations§
Auto Trait Implementations§
impl Forget for EvalContext
impl Freeze for EvalContext
impl Move for EvalContext
impl RefUnwindSafe for EvalContext
impl Send for EvalContext
impl Sync for EvalContext
impl Unpin for EvalContext
impl UnsafeUnpin for EvalContext
impl UnwindSafe for EvalContext
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