Environment

Type Alias Environment 

Source
pub type Environment = TypeTable<PolymorphicType, Var>;

Aliased Type§

pub struct Environment(/* private fields */);

Implementations§

Source§

impl Environment

Source

pub fn substitute_mut(&mut self, substitutions: &Substitutions) -> &mut Self

Source

pub fn push(&mut self, key: impl Into<Var>, value: impl Into<PolymorphicType>)

Source

pub fn iter(&self) -> impl Iterator<Item = (&Var, &PolymorphicType)>

Trait Implementations§

Source§

impl Display for Environment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnvironmentProvider<Var> for Environment

Source§

type Error = Infallible

Source§

fn maybe_get( &self, key: &Var, ) -> Result<Option<Cow<'_, PolymorphicType>>, Self::Error>

Source§

fn get(&self, key: &Key) -> Option<Cow<'_, PolymorphicType>>
where Self::Error: Debug,

👎Deprecated
Source§

impl TypeTableOps for Environment

Source§

fn merge(&mut self, other: Self)