#[repr(C)]pub struct mx_tag {
pub lo: u64,
pub hi: u64,
}Expand description
Type tag for runtime type identification.
A 128-bit identifier split into two 64-bit halves for C compatibility. Used to identify concrete types and trait interfaces at runtime.
§Generation
Tags should be generated as compile-time constants, typically using
a hash of the fully-qualified type/trait path. The #[miniextendr]
attribute macro handles this automatically.
§Comparison
Tags are compared by value equality of both lo and hi fields.
§Layout Guarantee
This type is #[repr(C)] and its layout is frozen. Fields will never
be reordered, and new fields will only be appended.
Fields§
§lo: u64Lower 64 bits of the type tag.
hi: u64Upper 64 bits of the type tag.
Implementations§
Trait Implementations§
impl Copy for mx_tag
impl Eq for mx_tag
impl StructuralPartialEq for mx_tag
Auto Trait Implementations§
impl Freeze for mx_tag
impl RefUnwindSafe for mx_tag
impl Send for mx_tag
impl Sync for mx_tag
impl Unpin for mx_tag
impl UnsafeUnpin for mx_tag
impl UnwindSafe for mx_tag
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