[−][src]Trait gluon_base::types::TypeContext
Required methods
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
fn intern(&mut self, typ: Type<Id, T>) -> T
fn intern_types(&mut self, types: impl IntoIterator<Item = T>) -> T::Types
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
Provided methods
fn hole(&mut self) -> T
fn opaque(&mut self) -> T
fn error(&mut self) -> T
fn builtin(&mut self, typ: BuiltinType) -> T
fn forall(&mut self, params: T::Generics, typ: T) -> T
fn with_forall(&mut self, typ: T, from: &T) -> T where
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
T::Generics: FromIterator<Generic<Id>> + Clone,
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
T::Generics: FromIterator<Generic<Id>> + Clone,
fn array(&mut self, typ: T) -> T
fn array_builtin(&mut self) -> T
fn app(&mut self, id: T, args: T::Types) -> T
fn variant(&mut self, fields: T::Fields) -> T
fn poly_variant(&mut self, fields: T::Fields, rest: T) -> T
fn effect(&mut self, fields: T::Fields) -> T
fn poly_effect(&mut self, fields: T::Fields, rest: T) -> T
fn tuple<S: ?Sized, I>(&mut self, symbols: &mut S, elems: I) -> T where
S: IdentEnv<Ident = Id>,
I: IntoIterator<Item = T>,
S: IdentEnv<Ident = Id>,
I: IntoIterator<Item = T>,
fn tuple_<S: ?Sized, I>(&mut self, symbols: &mut S, elems: I) -> Type<Id, T> where
S: IdentEnv<Ident = Id>,
I: IntoIterator<Item = T>,
S: IdentEnv<Ident = Id>,
I: IntoIterator<Item = T>,
fn record(&mut self, types: T::TypeFields, fields: T::Fields) -> T
fn poly_record(&mut self, types: T::TypeFields, fields: T::Fields, rest: T) -> T
fn extend_full_row(
&mut self,
types: T::TypeFields,
fields: T::Fields,
rest: T
) -> T
&mut self,
types: T::TypeFields,
fields: T::Fields,
rest: T
) -> T
fn extend_row(&mut self, fields: T::Fields, rest: T) -> T
fn extend_type_row(&mut self, types: T::TypeFields, rest: T) -> T
fn empty_row(&mut self) -> T
fn function<I>(&mut self, args: I, ret: T) -> T where
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
fn function_implicit<I>(&mut self, args: I, ret: T) -> T where
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
fn function_type<I>(&mut self, arg_type: ArgType, args: I, ret: T) -> T where
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
I: IntoIterator<Item = T>,
I::IntoIter: DoubleEndedIterator<Item = T>,
fn generic(&mut self, typ: Generic<Id>) -> T
fn skolem(&mut self, typ: Skolem<Id>) -> T
fn variable(&mut self, typ: TypeVariable) -> T
fn alias(&mut self, name: Id, args: T::Generics, typ: T) -> T
fn ident(&mut self, id: KindedIdent<Id>) -> T
fn projection(&mut self, id: AppVec<Id>) -> T
fn function_builtin(&mut self) -> T
fn string(&mut self) -> T
fn char(&mut self) -> T
fn byte(&mut self) -> T
fn int(&mut self) -> T
fn float(&mut self) -> T
fn unit(&mut self) -> T
fn builtin_type(&mut self, typ: BuiltinType) -> T
fn new_alias(&mut self, name: Id, args: T::Generics, typ: T) -> Alias<Id, T>
fn new_data_alias(&mut self, data: AliasData<Id, T>) -> Alias<Id, T>
fn alias_group(&mut self, group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>> where
T: TypeExt<Id = Id>,
Id: PartialEq,
T: TypeExt<Id = Id>,
Id: PartialEq,
Implementations on Foreign Types
impl<'b, Id, T, V> TypeContext<Id, T> for &'b Rc<V> where
&'a V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
[src]
&'a V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
[src]
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn builtin(&mut self, typ: BuiltinType) -> T
[src]
fn forall(&mut self, params: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn with_forall(&mut self, typ: T, from: &T) -> T where
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
[src]
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
fn array(&mut self, typ: T) -> T
[src]
fn app(&mut self, id: T, args: <T as TypePtr>::Types) -> T
[src]
fn variant(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_variant(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn effect(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_effect(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
fn poly_record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_full_row(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_row(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn extend_type_row(&mut self, types: <T as TypePtr>::TypeFields, rest: T) -> T
[src]
fn generic(&mut self, typ: Generic<Id>) -> T
[src]
fn skolem(&mut self, typ: Skolem<Id>) -> T
[src]
fn variable(&mut self, typ: TypeVariable) -> T
[src]
fn alias(&mut self, name: Id, args: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn ident(&mut self, id: KindedIdent<Id>) -> T
[src]
fn projection(&mut self, id: AppVec<Id>) -> T
[src]
fn builtin_type(&mut self, typ: BuiltinType) -> T
[src]
fn new_alias(
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
[src]
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
fn new_data_alias(&mut self, data: AliasData<Id, T>) -> Alias<Id, T>
[src]
fn alias_group(&mut self, group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>> where
T: TypeExt<Id = Id>,
Id: PartialEq,
[src]
T: TypeExt<Id = Id>,
Id: PartialEq,
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
impl<Id, T, V> TypeContext<Id, T> for Rc<V> where
&'a V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
[src]
&'a V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
[src]
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn builtin(&mut self, typ: BuiltinType) -> T
[src]
fn forall(&mut self, params: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn with_forall(&mut self, typ: T, from: &T) -> T where
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
[src]
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
fn array(&mut self, typ: T) -> T
[src]
fn app(&mut self, id: T, args: <T as TypePtr>::Types) -> T
[src]
fn variant(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_variant(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn effect(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_effect(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
fn poly_record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_full_row(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_row(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn extend_type_row(&mut self, types: <T as TypePtr>::TypeFields, rest: T) -> T
[src]
fn generic(&mut self, typ: Generic<Id>) -> T
[src]
fn skolem(&mut self, typ: Skolem<Id>) -> T
[src]
fn variable(&mut self, typ: TypeVariable) -> T
[src]
fn alias(&mut self, name: Id, args: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn ident(&mut self, id: KindedIdent<Id>) -> T
[src]
fn projection(&mut self, id: AppVec<Id>) -> T
[src]
fn builtin_type(&mut self, typ: BuiltinType) -> T
[src]
fn new_alias(
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
[src]
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
fn new_data_alias(&mut self, data: AliasData<Id, T>) -> Alias<Id, T>
[src]
fn alias_group(&mut self, group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>> where
T: TypeExt<Id = Id>,
Id: PartialEq,
[src]
T: TypeExt<Id = Id>,
Id: PartialEq,
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
impl<'a, Id, T, V> TypeContext<Id, T> for &'a RefCell<V> where
V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
[src]
V: TypeContext<Id, T>,
T: TypePtr<Id = Id>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
[src]
&mut self,
types: impl IntoIterator<Item = T>
) -> <T as TypePtr>::Types
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> <T as TypePtr>::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> <T as TypePtr>::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> <T as TypePtr>::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn builtin(&mut self, typ: BuiltinType) -> T
[src]
fn forall(&mut self, params: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn with_forall(&mut self, typ: T, from: &T) -> T where
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
[src]
Id: Clone + Eq + Hash,
T: TypeExt<Id = Id> + Clone,
<T as TypePtr>::Generics: FromIterator<Generic<Id>> + Clone,
fn array(&mut self, typ: T) -> T
[src]
fn app(&mut self, id: T, args: <T as TypePtr>::Types) -> T
[src]
fn variant(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_variant(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn effect(&mut self, fields: <T as TypePtr>::Fields) -> T
[src]
fn poly_effect(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields
) -> T
fn poly_record(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_full_row(
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
[src]
&mut self,
types: <T as TypePtr>::TypeFields,
fields: <T as TypePtr>::Fields,
rest: T
) -> T
fn extend_row(&mut self, fields: <T as TypePtr>::Fields, rest: T) -> T
[src]
fn extend_type_row(&mut self, types: <T as TypePtr>::TypeFields, rest: T) -> T
[src]
fn generic(&mut self, typ: Generic<Id>) -> T
[src]
fn skolem(&mut self, typ: Skolem<Id>) -> T
[src]
fn variable(&mut self, typ: TypeVariable) -> T
[src]
fn alias(&mut self, name: Id, args: <T as TypePtr>::Generics, typ: T) -> T
[src]
fn ident(&mut self, id: KindedIdent<Id>) -> T
[src]
fn projection(&mut self, id: AppVec<Id>) -> T
[src]
fn builtin_type(&mut self, typ: BuiltinType) -> T
[src]
fn new_alias(
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
[src]
&mut self,
name: Id,
args: <T as TypePtr>::Generics,
typ: T
) -> Alias<Id, T>
fn new_data_alias(&mut self, data: AliasData<Id, T>) -> Alias<Id, T>
[src]
fn alias_group(&mut self, group: Vec<AliasData<Id, T>>) -> Vec<Alias<Id, T>> where
T: TypeExt<Id = Id>,
Id: PartialEq,
[src]
T: TypeExt<Id = Id>,
Id: PartialEq,
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
Implementors
impl<'a, Id, T> TypeContext<Id, T> for &'a TypeCache<Id, T> where
T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>> + Clone,
T::Types: Default + Extend<T> + FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
[src]
T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>> + Clone,
T::Types: Default + Extend<T> + FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(&mut self, types: impl IntoIterator<Item = T>) -> T::Types
[src]
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
impl<'ast, '_, Id> TypeContext<Id, AstType<'ast, Id>> for ArenaRef<'_, 'ast, Id>
[src]
fn intern(&mut self, typ: Type<Id, AstType<'ast, Id>>) -> AstType<'ast, Id>
[src]
fn intern_types(
&mut self,
types: impl IntoIterator<Item = AstType<'ast, Id>>
) -> &'ast mut [AstType<'ast, Id>]
[src]
&mut self,
types: impl IntoIterator<Item = AstType<'ast, Id>>
) -> &'ast mut [AstType<'ast, Id>]
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> &'ast mut [Generic<Id>]
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> &'ast mut [Generic<Id>]
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, AstType<'ast, Id>>>
) -> &'ast mut [Field<Id, AstType<'ast, Id>>]
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, AstType<'ast, Id>>>
) -> &'ast mut [Field<Id, AstType<'ast, Id>>]
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, AstType<'ast, Id>>>>
) -> &'ast mut [Field<Id, Alias<Id, AstType<'ast, Id>>>]
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, AstType<'ast, Id>>>>
) -> &'ast mut [Field<Id, Alias<Id, AstType<'ast, Id>>>]
fn intern_flags(
&mut self,
typ: Type<Id, AstType<'ast, Id>>,
_flags: Flags
) -> AstType<'ast, Id>
[src]
&mut self,
typ: Type<Id, AstType<'ast, Id>>,
_flags: Flags
) -> AstType<'ast, Id>
impl<Id, T> TypeContext<Id, T> for Interner<Id, T> where
T: TypeContextAlloc<Id = Id> + TypeExt<Id = Id> + Eq + Hash + Clone,
T::Types: FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
Id: Eq + Hash,
[src]
T: TypeContextAlloc<Id = Id> + TypeExt<Id = Id> + Eq + Hash + Clone,
T::Types: FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
Id: Eq + Hash,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(&mut self, types: impl IntoIterator<Item = T>) -> T::Types
[src]
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
impl<Id, T> TypeContext<Id, T> for TypeCache<Id, T> where
T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>> + Clone,
T::Types: Default + Extend<T> + FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
[src]
T: TypeExt<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>> + Clone,
T::Types: Default + Extend<T> + FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(&mut self, types: impl IntoIterator<Item = T>) -> T::Types
[src]
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
fn intern_flags(&mut self, typ: Type<Id, T>, flags: Flags) -> T
[src]
fn hole(&mut self) -> T
[src]
fn opaque(&mut self) -> T
[src]
fn error(&mut self) -> T
[src]
fn int(&mut self) -> T
[src]
fn byte(&mut self) -> T
[src]
fn float(&mut self) -> T
[src]
fn string(&mut self) -> T
[src]
fn char(&mut self) -> T
[src]
fn function_builtin(&mut self) -> T
[src]
fn array_builtin(&mut self) -> T
[src]
fn unit(&mut self) -> T
[src]
fn empty_row(&mut self) -> T
[src]
impl<Id, T> TypeContext<Id, T> for NullInterner where
T: TypePtr<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>>,
T::Types: FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
[src]
T: TypePtr<Id = Id> + From<(Type<Id, T>, Flags)> + From<Type<Id, T>>,
T::Types: FromIterator<T>,
T::Generics: FromIterator<Generic<Id>>,
T::Fields: FromIterator<Field<Id, T>>,
T::TypeFields: FromIterator<Field<Id, Alias<Id, T>>>,
fn intern(&mut self, typ: Type<Id, T>) -> T
[src]
fn intern_types(&mut self, types: impl IntoIterator<Item = T>) -> T::Types
[src]
fn intern_generics(
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
[src]
&mut self,
types: impl IntoIterator<Item = Generic<Id>>
) -> T::Generics
fn intern_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, T>>
) -> T::Fields
fn intern_type_fields(
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields
[src]
&mut self,
types: impl IntoIterator<Item = Field<Id, Alias<Id, T>>>
) -> T::TypeFields