Enum e57::RecordValue
source · pub enum RecordValue {
Single(f32),
Double(f64),
ScaledInteger(i64),
Integer(i64),
}Expand description
Represents a raw value of attributes inside a point cloud.
For scaled integers the record data type with the scale and offset is needed to calculate the actual f64 value.
Variants§
Implementations§
source§impl RecordValue
impl RecordValue
pub fn to_f64(&self, dt: &RecordDataType) -> Result<f64>
pub fn to_unit_f32(&self, dt: &RecordDataType) -> Result<f32>
pub fn to_u8(&self, dt: &RecordDataType) -> Result<u8>
pub fn to_i64(&self, dt: &RecordDataType) -> Result<i64>
Trait Implementations§
source§impl Clone for RecordValue
impl Clone for RecordValue
source§fn clone(&self) -> RecordValue
fn clone(&self) -> RecordValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RecordValue
impl Debug for RecordValue
source§impl Display for RecordValue
impl Display for RecordValue
source§impl PartialEq for RecordValue
impl PartialEq for RecordValue
impl StructuralPartialEq for RecordValue
Auto Trait Implementations§
impl Freeze for RecordValue
impl RefUnwindSafe for RecordValue
impl Send for RecordValue
impl Sync for RecordValue
impl Unpin for RecordValue
impl UnwindSafe for RecordValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)