Skip to main content

Module values

Module values 

Source
Expand description

Contains definitions for variables and constant values.

Modules§

scalar_value_ser_de 🔒
Custom serializer that stores 128 bit integers as strings to avoid overflow.

Macros§

static_constant 🔒

Structs§

ConstantExpr
A constant expression.
FloatValue
This is simlar to the Scalar value above. However, instead of storing the float value itself, we store its String representation. This allows to derive the Eq and Ord traits, which are not implemented for floats
GlobalPlace
The place a Ref/Ptr constant points to, e.g. GLOBAL.0[1]. This is a constant version of Place.

Enums§

Byte
A byte, in the MiniRust sense: it can either be uninitialized, a concrete u8 value, or part of a pointer with provenance (e.g. to a global or a function)
ConstProjectionElem
A projection inside the pointee of a Ref/Ptr constant. This is a constant version of ProjectionElem.
ConstantExprKind
GlobalPlaceKind
GlobalProvenance
Provenance is the location in memory a pointer (or the byte of a pointer, see Byte) points to. GlobalProvenance represents a compile-time provenance. See https://doc.rust-lang.org/std/ptr/index.html#provenance
IntegerValue
A scalar value.