pub struct LidarPointComplexDecl {
pub name: String,
pub m64_submagic: u8,
pub crs: String,
pub byte_budget: u64,
pub classification_codes: Vec<u8>,
pub point_count: u64,
}Expand description
Validator and container helper for LidarPointComplex (.m64 Mode 0x00).
Fields§
§name: String§m64_submagic: u8§crs: String§byte_budget: u64§classification_codes: Vec<u8>§point_count: u64Implementations§
Source§impl LidarPointComplexDecl
impl LidarPointComplexDecl
pub const EXPECTED_SUBMAGIC: u8 = 0x00
pub const MAX_ASPRS_CODE: u8 = 18
pub fn new( name: impl Into<String>, m64_submagic: u8, crs: impl Into<String>, byte_budget: u64, classification_codes: Vec<u8>, point_count: u64, ) -> Self
pub fn is_valid_asprs_code(code: u8) -> bool
pub fn asprs_code_name(code: u8) -> Option<&'static str>
pub fn validate(&self) -> Result<(), &'static str>
Trait Implementations§
Source§impl Clone for LidarPointComplexDecl
impl Clone for LidarPointComplexDecl
Source§impl Debug for LidarPointComplexDecl
impl Debug for LidarPointComplexDecl
Source§impl PartialEq for LidarPointComplexDecl
impl PartialEq for LidarPointComplexDecl
impl StructuralPartialEq for LidarPointComplexDecl
Auto Trait Implementations§
impl Freeze for LidarPointComplexDecl
impl RefUnwindSafe for LidarPointComplexDecl
impl Send for LidarPointComplexDecl
impl Sync for LidarPointComplexDecl
impl Unpin for LidarPointComplexDecl
impl UnsafeUnpin for LidarPointComplexDecl
impl UnwindSafe for LidarPointComplexDecl
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