Structs§
- Closure
Type Long Id - A type id of a closure function.
- Concrete
Enum Id - Concrete
Enum Long Id - Concrete
Extern Type Id - Concrete
Extern Type Long Id - Concrete
Struct Id - Concrete
Struct Long Id - Impl
Type ById - A wrapper around ImplTypeById that implements Ord for saving in an ordered collection.
- Impl
Type Id - An impl item of kind type.
- TypeId
- Type
Info
Enums§
- Concrete
Type Id - Type
Head - Head of a type.
- Type
Long Id - Type
Size Information
Functions§
- add_
type_ based_ diagnostics - Adds diagnostics for a type, post semantic analysis of types.
- extract_
fixed_ size_ array_ size - Extracts the size of a fixed size array, or none if the size is missing. Reports an error if the size is not a numeric literal.
- generic_
type_ generic_ params - Query implementation of crate::db::SemanticGroup::generic_type_generic_params.
- get_
impl_ at_ context - Checks if there is at least one impl that can be inferred for a specific concrete trait.
- maybe_
resolve_ type - peel_
snapshots - Peels all wrapping Snapshot (
@
) from the type. Returns the number of peeled snapshots and the inner type. - peel_
snapshots_ ex - Same as
peel_snapshots
, but takes aTypeLongId
instead of aTypeId
. - priv_
type_ is_ fully_ concrete - priv_
type_ is_ var_ free - priv_
type_ short_ name - resolve_
type - Resolves a type given a module and a path. Used for resolving from non-statement context.
- resolve_
type_ with_ environment - Resolves a type given a module and a path.
statement_env
should be provided if called from statement context. - single_
value_ type - Query implementation of crate::db::SemanticGroup::single_value_type.
- type_
info - Query implementation of crate::db::SemanticGroup::type_info.
- type_
size_ info - Query implementation of crate::db::SemanticGroup::type_size_info.
- type_
size_ info_ cycle - Cycle handling of crate::db::SemanticGroup::type_size_info.
- verify_
fixed_ size_ array_ size - Verifies that a given fixed size array size is within limits, and adds a diagnostic if not.
- wrap_
in_ snapshots - Wraps a type with Snapshot (
@
)n_snapshots
times.