Expand description
The translation contexts.
MacrosΒ§
- error_
assert π - Custom assert to either panic or return an error
- raise_
error π - Macro to either panic or return on error, depending on the CLI options
- register_
error π
StructsΒ§
- Binding
Level π - A level of binding for type-level variables. Each item has a top-level binding level corresponding to the parameters and clauses to the items. We may then encounter inner binding levels in the following cases:
- DepSource π
- We use this to save the origin of an id. This is useful for the external dependencies, especially if some external dependencies donβt extract: we use this information to tell the user what is the code which (transitively) lead to the extraction of those problematic dependencies.
- Error
Ctx π - The context for tracking and reporting errors.
- Item
Trans πCtx - A translation context for items. Augments the TranslateCtx with type-level variables.
- Level π
- [
Message
] or [Title
] severity level - Translate
Ctx - Translation context used while translating the crate data into our representation.
EnumsΒ§
- Trans
Item Source - The id of an untranslated item. Note that a given
DefId
may show up as multiple different item sources, e.g. a constant will have both aGlobal
version (for the constant itself) and aFunDecl
one (for its initializer function).
FunctionsΒ§
- catch_
sinto - Translates
T
intoU
usinghax
βsSInto
trait, catching any hax panics.