Struct rustc_symbol_mangling::v0::SymbolMangler [−][src]
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: StringImplementations
Push a _-terminated base 62 integer, using the format
specified in the RFC as <base-62-number>, that is:
x = 0is encoded as just the"_"terminatorx > 0is encoded asx - 1in base 62, followed by"_", e.g.1becomes"0_",62becomes"Z_", etc.
Push a tag-prefixed base 62 integer, when larger than 0, that is:
x = 0is encoded as""(nothing)x > 0is encoded as thetagfollowed bypush_integer_62(x - 1)e.g.1becomestag + "_",2becomestag + "0_", etc.
Trait Implementations
type Path = Selftype Region = Selftype Type = Selftype DynExistential = Selftype Const = Selffn print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>fn print_impl_path(
self,
impl_def_id: DefId,
substs: &'tcx [GenericArg<'tcx>],
self_ty: Ty<'tcx>,
impl_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>fn print_dyn_existential(
self,
predicates: &'tcx List<Binder<'tcx, ExistentialPredicate<'tcx>>>
) -> Result<Self::DynExistential, Self::Error>fn path_qualified(
self,
self_ty: Ty<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>fn path_append_impl(
self,
_: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
_: &DisambiguatedDefPathData,
_: Ty<'tcx>,
_: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>fn path_append(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
disambiguated_data: &DisambiguatedDefPathData
) -> Result<Self::Path, Self::Error>fn path_generic_args(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
args: &[GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>fn default_print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>fn generic_args_to_print(
&self,
generics: &'tcx Generics,
substs: &'tcx [GenericArg<'tcx>]
) -> &'tcx [GenericArg<'tcx>]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
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes