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 - Shallow
Generic Arg - A generic argument which is not fully inferred. Used to avoid cycles in the inference.
- Type
Head - Head of a type.
- Type
Long Id - Type
Size Information
Traits§
- Priv
Types Semantic - Private trait for types-related semantic queries.
- Types
Semantic - Trait for types-related semantic queries.
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.
- get_
impl_ at_ context - Checks if there is at least one impl that can be inferred for a specific concrete trait.
- maybe_
resolve_ shallow_ generic_ arg_ type - Resolves a shallow generic argument from a syntax node.
- 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 aTypeLongIdinstead of aTypeId. - priv_
type_ is_ fully_ concrete_ tracked - Query implementation of PrivTypesSemantic::priv_type_is_fully_concrete.
- priv_
type_ is_ var_ free - priv_
type_ is_ var_ free_ tracked - Query implementation of PrivTypesSemantic::priv_type_is_var_free.
- priv_
type_ short_ name - priv_
type_ short_ name_ tracked - resolve_
type - Resolves a type given a module and a path. Used for resolving from non-statement context.
- resolve_
type_ ex - Resolves a type given a module and a path. Allows defining a resolution context.
- 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_snapshotstimes.