Skip to main content

Module translate_generics

Module translate_generics 

Source

Re-exportsΒ§

use rustc_hash::FxHashMap as HashMap; πŸ”’
use rustc_hash::FxHashSet as HashSet; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use std::mem; πŸ”’
use crate::frontend as front; πŸ”’
use crate::frontend::BaseState; πŸ”’
use crate::frontend::SInto; πŸ”’
use crate::frontend::Symbol; πŸ”’
use rustc_middle::ty; πŸ”’
use super::translate_ctx::ItemTransCtx; πŸ”’
use charon_lib::utils::CycleDetector; πŸ”’
use charon_lib::ast::*; πŸ”’

StructsΒ§

BindingLevel πŸ”’
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:
LifetimeMutabilityComputer
Struct to compute the β€œmutability” of each lifetime.

FunctionsΒ§

translate_region_name πŸ”’
Small helper: we ignore some region names (when they are equal to β€œβ€™_”)
translate_variance πŸ”’