Skip to main content

Module alloc

Module alloc 

Source
Expand description

This module provides methods to retrieve allocation information, such as static variables.

Re-exportsΒ§

use std::io::Read; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use crate::mir::mono::Instance; πŸ”’
use crate::mir::mono::StaticDef; πŸ”’
use crate::target::Endian; πŸ”’
use crate::target::MachineInfo; πŸ”’
use crate::ty::Allocation; πŸ”’
use crate::ty::Binder; πŸ”’
use crate::ty::ExistentialTraitRef; πŸ”’
use crate::ty::Ty; πŸ”’
use crate::ty::index_impl; πŸ”’
use crate::Error; πŸ”’
use crate::ThreadLocalIndex; πŸ”’
use crate::ThreadLocalIndex; πŸ”’
use crate::with; πŸ”’

StructsΒ§

AllocId
A unique identification number for each provenance

EnumsΒ§

GlobalAlloc
An allocation in the rustc_public’s IR global memory can be either a function pointer, a static, or a β€œreal” allocation with some data in it.

FunctionsΒ§

read_target_int πŸ”’
Utility function used to read an allocation data into an assigned integer.
read_target_uint πŸ”’
Utility function used to read an allocation data into a unassigned integer.