pub struct AddressDef {
pub id: DefinitionId,
pub container_id: DefinitionId,
pub byte_offset: u32,
}Expand description
An address pointing to a specific byte offset within a container.
Addresses are used for divert targets, visit tracking, and any definition
that maps to a position within a container. A “primary” address has
byte_offset == 0 and the same id as its container_id, functioning
like the old Container tag. Intra-container addresses have non-zero
offsets and distinct IDs.
Fields§
§id: DefinitionId§container_id: DefinitionId§byte_offset: u32Trait Implementations§
Source§impl Clone for AddressDef
impl Clone for AddressDef
Source§fn clone(&self) -> AddressDef
fn clone(&self) -> AddressDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressDef
Source§impl Debug for AddressDef
impl Debug for AddressDef
impl Eq for AddressDef
Source§impl PartialEq for AddressDef
impl PartialEq for AddressDef
Source§fn eq(&self, other: &AddressDef) -> bool
fn eq(&self, other: &AddressDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddressDef
Auto Trait Implementations§
impl Freeze for AddressDef
impl RefUnwindSafe for AddressDef
impl Send for AddressDef
impl Sync for AddressDef
impl Unpin for AddressDef
impl UnsafeUnpin for AddressDef
impl UnwindSafe for AddressDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more