pub struct Entry {
pub key: VoxelKey,
pub offset: u64,
pub byte_size: i32,
pub point_count: i32,
}Expand description
One 32-byte COPC hierarchy entry.
Fields§
§key: VoxelKey§offset: u64§byte_size: i32§point_count: i32Implementations§
Source§impl Entry
impl Entry
Sourcepub fn validate(self) -> Result<()>
pub fn validate(self) -> Result<()>
Validate invariants that do not depend on the containing file.
pub fn availability(self) -> Result<EntryAvailability>
pub fn has_point_data(self) -> bool
pub fn is_empty(self) -> bool
pub fn is_child_page(self) -> bool
pub fn write_le(self, dst: &mut [u8]) -> Result<()>
pub fn from_le(src: &[u8]) -> Result<Self>
Trait Implementations§
impl Copy for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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