#[repr(C)]pub struct SpatialPageHeader {Show 18 fields
pub magic: u32,
pub version: u32,
pub morton_prefix: u64,
pub node_count: u16,
pub morton_shift: u8,
pub _pad1: [u8; 5],
pub min_x: f32,
pub max_x: f32,
pub min_y: f32,
pub max_y: f32,
pub min_z: f32,
pub max_z: f32,
pub _pad2: [u8; 8],
pub property_block_offset: u32,
pub property_block_len: u32,
pub edge_cluster_offset: u32,
pub edge_cluster_len: u32,
pub _reserved: [u8; 16],
}Expand description
Fixed-size page header (88 bytes, no padding).
Fields§
§magic: u32§version: u32§morton_prefix: u64§node_count: u16§morton_shift: u8§_pad1: [u8; 5]§min_x: f32Bounding box of all nodes in this page.
max_x: f32§min_y: f32§max_y: f32§min_z: f32§max_z: f32§_pad2: [u8; 8]§property_block_offset: u32Offset within page body (after header) to property block, in bytes.
property_block_len: u32Length of property block in bytes.
edge_cluster_offset: u32Offset within page body to edge cluster, in bytes.
edge_cluster_len: u32Number of edges in this page’s edge cluster.
_reserved: [u8; 16]Implementations§
Trait Implementations§
Source§impl Clone for SpatialPageHeader
impl Clone for SpatialPageHeader
Source§fn clone(&self) -> SpatialPageHeader
fn clone(&self) -> SpatialPageHeader
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 SpatialPageHeader
Source§impl Debug for SpatialPageHeader
impl Debug for SpatialPageHeader
impl Pod for SpatialPageHeader
Auto Trait Implementations§
impl Freeze for SpatialPageHeader
impl RefUnwindSafe for SpatialPageHeader
impl Send for SpatialPageHeader
impl Sync for SpatialPageHeader
impl Unpin for SpatialPageHeader
impl UnsafeUnpin for SpatialPageHeader
impl UnwindSafe for SpatialPageHeader
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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