Expand description
Traits to represent an address within an address space.
Two traits are defined to represent an address within an address space:
AddressValue
: stores the raw value of an address. Typicallyu32
,u64
orusize
is used to store the raw value. But pointers, such as*u8
, can’t be used because they don’t implement theAdd
andSub
traits.- Address: encapsulates an
AddressValue
object and defines methods to access and manipulate it.
Traits§
- Trait to represent an address within an address space.
- Simple helper trait used to store a raw address value.