Type Alias AssumptionSet

Source
pub type AssumptionSet = TypeTable<Vec<MonomorphicType>, Var>;

Aliased Type§

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

Implementations§

Source§

impl AssumptionSet

Source

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

Source

pub fn get<K>(&self, key: &K) -> Cow<'_, [MonomorphicType]>
where Var: Borrow<K>, K: Hash + Eq,

Source

pub fn single(key: impl Into<Var>, value: impl Into<MonomorphicType>) -> Self

Source

pub fn merge_many( iter: impl IntoIterator<Item = AssumptionSet>, ) -> AssumptionSet

Trait Implementations§

Source§

impl Display for AssumptionSet

Source§

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

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

impl TypeTableOps for AssumptionSet

Source§

fn merge(&mut self, other: Self)