#[repr(C, align(64))]pub struct M64LocalMetricHeader {
pub magic: [u8; 4],
pub version: u16,
pub scale_tier: u8,
pub coord_frame_kind: u8,
pub anchor_did_hash: u64,
pub origin_offset_m: [f64; 3],
pub orientation_quat: [f32; 4],
pub anisotropic_scale_um: [f32; 3],
pub bbox_min_um: [i32; 3],
pub bbox_max_um: [i32; 3],
pub reserved: [u8; 32],
pub header_crc32c: u32,
}Expand description
128-byte Local Relative Metric (LRM3) Header (2 × 64B cache lines).
Fields§
§magic: [u8; 4]0x00..0x04: ASCII Magic LRM3
version: u160x04..0x06: LRM3 version (1)
scale_tier: u80x06..0x07: Scale tier (S in 0..7)
coord_frame_kind: u80x07..0x08: Coordinate frame kind (0=Cartesian, 1=Cylindrical, 2=Spherical)
anchor_did_hash: u640x08..0x10: Entity / specimen / patient DID hash anchor
origin_offset_m: [f64; 3]0x10..0x28: World anchor origin offset in meters [x, y, z]
orientation_quat: [f32; 4]0x28..0x38: Orientation quaternion [x, y, z, w] relative to anchor
anisotropic_scale_um: [f32; 3]0x38..0x44: Anisotropic scale in micrometers per integer unit [sx, sy, sz]
bbox_min_um: [i32; 3]0x44..0x50: Bounding box minimum in micrometers [min_x, min_y, min_z]
bbox_max_um: [i32; 3]0x50..0x5C: Bounding box maximum in micrometers [max_x, max_y, max_z]
reserved: [u8; 32]0x5C..0x7C: Reserved for expansion (32 bytes)
header_crc32c: u320x7C..0x80: CRC-32C checksum of bytes 0..124
Implementations§
Source§impl M64LocalMetricHeader
impl M64LocalMetricHeader
Sourcepub fn compute_crc32c(&self) -> u32
pub fn compute_crc32c(&self) -> u32
Compute CRC-32C over the first 124 bytes of the header.
Sourcepub fn update_crc(&mut self)
pub fn update_crc(&mut self)
Update header_crc32c with the computed CRC-32C.
Trait Implementations§
Source§impl Clone for M64LocalMetricHeader
impl Clone for M64LocalMetricHeader
impl Copy for M64LocalMetricHeader
Source§impl Debug for M64LocalMetricHeader
impl Debug for M64LocalMetricHeader
Source§impl Default for M64LocalMetricHeader
impl Default for M64LocalMetricHeader
Source§impl PartialEq for M64LocalMetricHeader
impl PartialEq for M64LocalMetricHeader
impl Pod for M64LocalMetricHeader
impl StructuralPartialEq for M64LocalMetricHeader
Auto Trait Implementations§
impl Freeze for M64LocalMetricHeader
impl RefUnwindSafe for M64LocalMetricHeader
impl Send for M64LocalMetricHeader
impl Sync for M64LocalMetricHeader
impl Unpin for M64LocalMetricHeader
impl UnsafeUnpin for M64LocalMetricHeader
impl UnwindSafe for M64LocalMetricHeader
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more