Struct laz::las::point0::Point0

source ·
pub struct Point0 {
    pub x: i32,
    pub y: i32,
    pub z: i32,
    pub intensity: u16,
    pub number_of_returns_of_given_pulse: u8,
    pub scan_direction_flag: bool,
    pub edge_of_flight_line: bool,
    pub return_number: u8,
    pub classification: u8,
    pub scan_angle_rank: i8,
    pub user_data: u8,
    pub point_source_id: u16,
}

Fields§

§x: i32§y: i32§z: i32§intensity: u16§number_of_returns_of_given_pulse: u8§scan_direction_flag: bool§edge_of_flight_line: bool§return_number: u8§classification: u8§scan_angle_rank: i8§user_data: u8§point_source_id: u16

Implementations§

source§

impl Point0

source

pub const SIZE: usize = 20usize

source

pub fn populate_bit_fields_from(&mut self, byte: u8)

source

pub fn bit_fields_to_byte(&self) -> u8

Trait Implementations§

source§

impl Clone for Point0

source§

fn clone(&self) -> Point0

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 Point0

source§

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

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

impl Default for Point0

source§

fn default() -> Point0

Returns the “default value” for a type. Read more
source§

impl DefaultVersion for Point0

source§

fn default_version(num_extra_bytes: u16) -> Vec<LazItem>

source§

impl LasPoint0 for Point0

source§

fn x(&self) -> i32

source§

fn y(&self) -> i32

source§

fn z(&self) -> i32

source§

fn intensity(&self) -> u16

source§

fn bit_fields(&self) -> u8

source§

fn number_of_returns_of_given_pulse(&self) -> u8

source§

fn scan_direction_flag(&self) -> bool

source§

fn edge_of_flight_line(&self) -> bool

source§

fn return_number(&self) -> u8

source§

fn classification(&self) -> u8

source§

fn scan_angle_rank(&self) -> i8

source§

fn user_data(&self) -> u8

source§

fn point_source_id(&self) -> u16

source§

fn set_x(&mut self, new_val: i32)

source§

fn set_y(&mut self, new_val: i32)

source§

fn set_z(&mut self, new_val: i32)

source§

fn set_intensity(&mut self, new_val: u16)

source§

fn set_bit_fields(&mut self, new_val: u8)

source§

fn set_classification(&mut self, new_val: u8)

source§

fn set_scan_angle_rank(&mut self, new_val: i8)

source§

fn set_user_data(&mut self, new_val: u8)

source§

fn set_point_source_id(&mut self, new_val: u16)

source§

impl PartialEq for Point0

source§

fn eq(&self, other: &Point0) -> 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 Version1 for Point0

source§

fn version_1(num_extra_bytes: u16) -> Vec<LazItem>

source§

impl Version2 for Point0

source§

fn version_2(num_extra_bytes: u16) -> Vec<LazItem>

source§

impl Copy for Point0

source§

impl StructuralPartialEq for Point0

Auto Trait Implementations§

§

impl Freeze for Point0

§

impl RefUnwindSafe for Point0

§

impl Send for Point0

§

impl Sync for Point0

§

impl Unpin for Point0

§

impl UnwindSafe for Point0

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.