Skip to main content

Environment

Type Alias Environment 

Source
pub type Environment = Gc<Box<dyn EnvironmentRecordTrait>>;
Expand description

Environments are wrapped in a Box and then in a GC wrapper

Aliased Type§

pub struct Environment { /* private fields */ }

Trait Implementations§

Source§

impl From<DeclarativeEnvironmentRecord> for Environment

Source§

fn from(env: DeclarativeEnvironmentRecord) -> Environment

Converts to this type from the input type.
Source§

impl From<FunctionEnvironmentRecord> for Environment

Source§

fn from(env: FunctionEnvironmentRecord) -> Environment

Converts to this type from the input type.
Source§

impl From<GlobalEnvironmentRecord> for Environment

Source§

fn from(env: GlobalEnvironmentRecord) -> Environment

Converts to this type from the input type.
Source§

impl From<ObjectEnvironmentRecord> for Environment

Source§

fn from(env: ObjectEnvironmentRecord) -> Environment

Converts to this type from the input type.