Type Alias ConstGenericDbVar

Source
pub type ConstGenericDbVar = DeBruijnVar<ConstGenericVarId>;

Aliased Type§

enum ConstGenericDbVar {
    Bound(DeBruijnId, ConstGenericVarId),
    Free(ConstGenericVarId),
}

Variants§

§

Bound(DeBruijnId, ConstGenericVarId)

A variable attached to the nth binder, counting from the innermost.

§

Free(ConstGenericVarId)

A variable attached to the outermost binder (the one on the item). As explained above, This is not used in charon internals, only as a micro-pass before exporting the crate data.

Trait Implementations§

Source§

impl<C: AstFormatter> FmtWithCtx<C> for ConstGenericDbVar

Source§

fn fmt_with_ctx(&self, ctx: &C, f: &mut Formatter<'_>) -> Result

Source§

fn with_ctx<'a>(&'a self, ctx: &'a C) -> WithCtx<'a, C, Self>

Returns a struct that implements Display. This allows the following: Read more
Source§

fn to_string_with_ctx(&self, ctx: &C) -> String