pub struct DecompressionSelection(pub u32);
Expand description

Struct for selective decompression

Contains the information of which fields the user wants to decompress or not.

§Note

Selective decompression is not supported by all point formats. On point formats which do not support it, it will be ignored and all data will be decompressed.

Tuple Fields§

§0: u32

Implementations§

source§

impl DecompressionSelection

source

pub const ALL: u32 = 4_294_967_295u32

source

pub const XY_RETURNS_CHANNEL: u32 = 0u32

source

pub const Z: u32 = 1u32

source

pub const CLASSIFICATION: u32 = 2u32

source

pub const FLAGS: u32 = 4u32

source

pub const INTENSITY: u32 = 8u32

source

pub const SCAN_ANGLE: u32 = 16u32

source

pub const USER_DATA: u32 = 32u32

source

pub const POINT_SOURCE_ID: u32 = 64u32

source

pub const GPS_TIME: u32 = 128u32

source

pub const RGB: u32 = 256u32

source

pub const NIR: u32 = 512u32

source

pub const WAVEPACKET: u32 = 1_024u32

source

pub const ALL_EXTRA_BYTES: u32 = 2_048u32

source

pub fn all() -> Self

To decompress all the possible fields

source

pub fn base() -> Self

To decompress only the ‘base’ fields that is:

  • x
  • y
  • return number
  • number of returns
  • scanner channel
source

pub fn xy_returns_channel() -> Self

source

pub fn decompress_z(self) -> Self

source

pub fn decompress_classification(self) -> Self

source

pub fn decompress_flags(self) -> Self

source

pub fn decompress_intensity(self) -> Self

source

pub fn decompress_scan_angle(self) -> Self

source

pub fn decompress_user_data(self) -> Self

source

pub fn decompress_point_source_id(self) -> Self

source

pub fn decompress_gps_time(self) -> Self

source

pub fn decompress_rgb(self) -> Self

source

pub fn decompress_nir(self) -> Self

source

pub fn decompress_wavepacket(self) -> Self

source

pub fn decompress_extra_bytes(self) -> Self

source

pub fn skip_z(self) -> Self

source

pub fn skip_classification(self) -> Self

source

pub fn skip_flags(self) -> Self

source

pub fn skip_intensity(self) -> Self

source

pub fn skip_scan_angle(self) -> Self

source

pub fn skip_user_data(self) -> Self

source

pub fn skip_point_source_id(self) -> Self

source

pub fn skip_gps_time(self) -> Self

source

pub fn skip_rgb(self) -> Self

source

pub fn skip_nir(self) -> Self

source

pub fn skip_wavepacket(self) -> Self

source

pub fn skip_extra_bytes(self) -> Self

source

pub fn should_decompress_z(self) -> bool

source

pub fn should_decompress_classification(self) -> bool

source

pub fn should_decompress_flags(self) -> bool

source

pub fn should_decompress_intensity(self) -> bool

source

pub fn should_decompress_scan_angle(self) -> bool

source

pub fn should_decompress_user_data(self) -> bool

source

pub fn should_decompress_point_source_id(self) -> bool

source

pub fn should_decompress_gps_time(self) -> bool

source

pub fn should_decompress_rgb(self) -> bool

source

pub fn should_decompress_nir(self) -> bool

source

pub fn should_decompress_wavepacket(self) -> bool

source

pub fn should_decompress_extra_bytes(self) -> bool

Trait Implementations§

source§

impl Clone for DecompressionSelection

source§

fn clone(&self) -> DecompressionSelection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DecompressionSelection

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Ord for DecompressionSelection

source§

fn cmp(&self, other: &DecompressionSelection) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for DecompressionSelection

source§

fn eq(&self, other: &DecompressionSelection) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for DecompressionSelection

source§

fn partial_cmp(&self, other: &DecompressionSelection) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for DecompressionSelection

source§

impl Eq for DecompressionSelection

source§

impl StructuralPartialEq for DecompressionSelection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.