pub struct PcdHeaderBuilder { /* private fields */ }Expand description
Builder for constructing PcdHeader with a fluent API.
Implementations§
Source§impl PcdHeaderBuilder
impl PcdHeaderBuilder
Sourcepub fn add_field(self, name: &str, value_type: ValueType) -> Self
pub fn add_field(self, name: &str, value_type: ValueType) -> Self
Add a field with the given name and type.
Fields are added in order and can only have count=1.
For fields with count > 1, use add_field_with_count.
Sourcepub fn width(self, w: u32) -> Self
pub fn width(self, w: u32) -> Self
Set the width (number of points per row). For unorganized point clouds, this equals the total number of points.
Sourcepub fn height(self, h: u32) -> Self
pub fn height(self, h: u32) -> Self
Set the height (number of rows). Default is 1 (unorganized point cloud).
Sourcepub fn data_format(self, fmt: DataFormat) -> Self
pub fn data_format(self, fmt: DataFormat) -> Self
Set the data format (Ascii, Binary, or BinaryCompressed). Default is Binary.
Trait Implementations§
Source§impl Clone for PcdHeaderBuilder
impl Clone for PcdHeaderBuilder
Source§fn clone(&self) -> PcdHeaderBuilder
fn clone(&self) -> PcdHeaderBuilder
Returns a duplicate 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 PcdHeaderBuilder
impl Debug for PcdHeaderBuilder
Auto Trait Implementations§
impl Freeze for PcdHeaderBuilder
impl RefUnwindSafe for PcdHeaderBuilder
impl Send for PcdHeaderBuilder
impl Sync for PcdHeaderBuilder
impl Unpin for PcdHeaderBuilder
impl UnwindSafe for PcdHeaderBuilder
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