#[repr(C)]pub struct SpatialIndexMiniHeader {
pub bvh_node_count: u32,
pub kd_node_count: u32,
pub bvh_root: u32,
pub kd_root: u32,
pub bvh_prim_count: u32,
pub kd_point_count: u32,
pub reserved_u32: u32,
pub reserved_u32_2: u32,
}Expand description
The 32-byte SpatialIndex-section mini-header.
offset size field
0 4 bvh_node_count:u32
4 4 kd_node_count:u32
8 4 bvh_root:u32
12 4 kd_root:u32
16 4 bvh_prim_count:u32 (number of BVH primitive indices, = number of AABBs)
20 4 kd_point_count:u32 (number of kd-tree point indices, = number of points)
24 4 reserved_u32 (must be zero)
28 4 reserved_u32_2 (must be zero)Fields§
§bvh_node_count: u32§kd_node_count: u32§bvh_root: u32§kd_root: u32§bvh_prim_count: u32§kd_point_count: u32§reserved_u32: u32§reserved_u32_2: u32Trait Implementations§
Source§impl Clone for SpatialIndexMiniHeader
impl Clone for SpatialIndexMiniHeader
impl Copy for SpatialIndexMiniHeader
Source§impl Debug for SpatialIndexMiniHeader
impl Debug for SpatialIndexMiniHeader
Source§impl Default for SpatialIndexMiniHeader
impl Default for SpatialIndexMiniHeader
Source§impl PartialEq for SpatialIndexMiniHeader
impl PartialEq for SpatialIndexMiniHeader
impl Pod for SpatialIndexMiniHeader
impl StructuralPartialEq for SpatialIndexMiniHeader
Auto Trait Implementations§
impl Freeze for SpatialIndexMiniHeader
impl RefUnwindSafe for SpatialIndexMiniHeader
impl Send for SpatialIndexMiniHeader
impl Sync for SpatialIndexMiniHeader
impl Unpin for SpatialIndexMiniHeader
impl UnsafeUnpin for SpatialIndexMiniHeader
impl UnwindSafe for SpatialIndexMiniHeader
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>,
Aggregate shares in an MPC protocol.
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
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
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,
§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> ⓘ
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 moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.