Struct las::reader::Reader

source ·
pub struct Reader<'a> { /* private fields */ }
Expand description

Reads LAS data.

Implementations§

Creates a new reader.

This does not wrap the Read in a BufRead, so if you’re concered about performance you should do that wrapping yourself (or use from_path).

Examples
use std::io::BufReader;
use std::fs::File;
let file = File::open("tests/data/autzen.las").unwrap();
let reader = Reader::new(BufReader::new(file)).unwrap();

Creates a new reader from a path.

The underlying File is wrapped in a BufReader for performance reasons.

Examples
let reader = Reader::from_path("tests/data/autzen.las").unwrap();

Trait Implementations§

Formats the value using the given formatter. Read more

Returns a reference to this reader’s header.

Reads a point.

Seeks to the given point number, zero-indexed.

Returns an iterator over this reader’s points.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.