pub struct LasColumnBatch {
pub len: usize,
pub columns: Vec<(ColumnSpec, ColumnData)>,
}Expand description
A column-oriented batch of LAS/COPC point values.
Fields§
§len: usize§columns: Vec<(ColumnSpec, ColumnData)>Implementations§
Source§impl LasColumnBatch
impl LasColumnBatch
pub fn new(columns: Vec<(ColumnSpec, ColumnData)>) -> Result<Self>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn column(&self, dimension: LasDimension) -> Option<&ColumnData>
pub fn column_by_spec(&self, spec: ColumnSpec) -> Option<&ColumnData>
pub fn column_view(&self, dimension: LasDimension) -> Option<ColumnView<'_>>
pub fn column_view_by_spec(&self, spec: ColumnSpec) -> Option<ColumnView<'_>>
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validate scalar declarations and column lengths for this batch.
Sourcepub fn validate_default_scalars(&self) -> Result<()>
pub fn validate_default_scalars(&self) -> Result<()>
Validate scalar declarations, fixed LAS/COPC scalar choices, and column lengths.
Trait Implementations§
Source§impl Clone for LasColumnBatch
impl Clone for LasColumnBatch
Source§fn clone(&self) -> LasColumnBatch
fn clone(&self) -> LasColumnBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LasColumnBatch
impl Debug for LasColumnBatch
Source§impl PartialEq for LasColumnBatch
impl PartialEq for LasColumnBatch
Source§fn eq(&self, other: &LasColumnBatch) -> bool
fn eq(&self, other: &LasColumnBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LasColumnBatch
Auto Trait Implementations§
impl Freeze for LasColumnBatch
impl RefUnwindSafe for LasColumnBatch
impl Send for LasColumnBatch
impl Sync for LasColumnBatch
impl Unpin for LasColumnBatch
impl UnsafeUnpin for LasColumnBatch
impl UnwindSafe for LasColumnBatch
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