Skip to main content

Module address_generator

Module address_generator 

Source

Re-exportsยง

use std::ops::Range; ๐Ÿ”’
use rand::Rng; ๐Ÿ”’
use rand::RngExt; ๐Ÿ”’
use rustc_abi::Align; ๐Ÿ”’
use rustc_abi::Size; ๐Ÿ”’
use rustc_const_eval::interpret::InterpResult; ๐Ÿ”’
use rustc_const_eval::interpret::interp_ok; ๐Ÿ”’
use rustc_middle::err_exhaust; ๐Ÿ”’
use rustc_middle::throw_exhaust; ๐Ÿ”’

Structsยง

AddressGenerator
This provides the logic to generate addresses for memory allocations in a given address range.

Functionsยง

align_addr ๐Ÿ”’
Shifts addr to make it aligned with align by rounding addr to the smallest multiple of align that is larger or equal to addr