Skip to main content

Module value

Module value 

Source

Re-exportsยง

use std::fmt; ๐Ÿ”’
use std::num::NonZero; ๐Ÿ”’
use either::Either; ๐Ÿ”’
use either::Left; ๐Ÿ”’
use either::Right; ๐Ÿ”’
use rustc_abi::HasDataLayout; ๐Ÿ”’
use rustc_abi::Size; ๐Ÿ”’
use rustc_apfloat::Float; ๐Ÿ”’
use rustc_apfloat::ieee::Double; ๐Ÿ”’
use rustc_apfloat::ieee::Half; ๐Ÿ”’
use rustc_apfloat::ieee::Quad; ๐Ÿ”’
use rustc_apfloat::ieee::Single; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_macros::TyDecodable; ๐Ÿ”’
use rustc_macros::TyEncodable; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use super::AllocId; ๐Ÿ”’
use super::CtfeProvenance; ๐Ÿ”’
use super::InterpResult; ๐Ÿ”’
use super::Pointer; ๐Ÿ”’
use super::PointerArithmetic; ๐Ÿ”’
use super::Provenance; ๐Ÿ”’
use super::interp_ok; ๐Ÿ”’
use crate::ty::ScalarInt; ๐Ÿ”’

Enumsยง

Scalar
A Scalar represents an immediate, primitive value existing outside of a memory::Allocation. It is in many ways like a small chunk of an Allocation, up to 16 bytes in size. Like a range of bytes in an Allocation, a Scalar can either represent the raw bytes of a simple value or a pointer into another Allocation