[−][src]Struct rustc_symbol_mangling::v0::SymbolMangler

pub(in v0) struct SymbolMangler<'tcx> {
    tcx: TyCtxt<'tcx>,
    compress: Option<Box<CompressionCaches<'tcx>>>,
    binders: Vec<BinderLevel>,
    out: String,
}

Fields

tcx: TyCtxt<'tcx>compress: Option<Box<CompressionCaches<'tcx>>>binders: Vec<BinderLevel>out: String

Implementations

impl<'tcx> SymbolMangler<'tcx>[src]

pub(in v0) fn push(
    &mut self,
    s: &str
)
[src]

pub(in v0) fn push_integer_62(
    &mut self,
    x: u64
)
[src]

Push a _-terminated base 62 integer, using the format specified in the RFC as <base-62-number>, that is:

  • x = 0 is encoded as just the "_" terminator
  • x > 0 is encoded as x - 1 in base 62, followed by "_", e.g. 1 becomes "0_", 62 becomes "Z_", etc.

pub(in v0) fn push_opt_integer_62(
    &mut self,
    tag: &str,
    x: u64
)
[src]

Push a tag-prefixed base 62 integer, when larger than 0, that is:

  • x = 0 is encoded as "" (nothing)
  • x > 0 is encoded as the tag followed by push_integer_62(x - 1) e.g. 1 becomes tag + "_", 2 becomes tag + "0_", etc.

pub(in v0) fn push_disambiguator(
    &mut self,
    dis: u64
)
[src]

pub(in v0) fn push_ident(
    &mut self,
    ident: &str
)
[src]

pub(in v0) fn path_append_ns(
    self,
    print_prefix: impl FnOnce(Self) -> Result<Self, !>,
    ns: char,
    disambiguator: u64,
    name: &str
) -> Result<Self, !>
[src]

pub(in v0) fn print_backref(
    self,
    i: usize
) -> Result<Self, !>
[src]

pub(in v0) fn in_binder<T>(
    self,
    value: &Binder<T>,
    print_value: impl FnOnce(Self, &T) -> Result<Self, !>
) -> Result<Self, !> where
    T: TypeFoldable<'tcx>, 
[src]

Trait Implementations

impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx>[src]

type Error = !

type Path = Self

type Region = Self

type Type = Self

type DynExistential = Self

type Const = Self

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for SymbolMangler<'tcx>

impl<'tcx> !Send for SymbolMangler<'tcx>

impl<'tcx> !Sync for SymbolMangler<'tcx>

impl<'tcx> Unpin for SymbolMangler<'tcx>

impl<'tcx> !UnwindSafe for SymbolMangler<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.