Enum las::header::Error[][src]

pub enum Error {
    FileSignature([u8; 4]),
    Format {
        version: Version,
        format: Format,
    },
    OffsetToPointDataTooLarge(usize),
    PointDataRecordLength {
        format: Format,
        len: u16,
    },
    PointPadding,
    TooLarge(usize),
    TooManyEvlrs(usize),
    TooManyPoints {
        n: u64,
        version: Version,
    },
    TooManyVlrs(usize),
    TooSmall(u16),
    WktRequired(Format),
}

Header-specific errors.

Variants

FileSignature([u8; 4])

The file signature is not LASF.

Format

The point format is not supported by version.

Fields of Format

version: Versionformat: Format
OffsetToPointDataTooLarge(usize)

The offset to point data is too large.

PointDataRecordLength

The point data record length is too small for the format.

Fields of PointDataRecordLength

format: Formatlen: u16
PointPadding

Point padding is only allowed when evlrs are present.

TooLarge(usize)

The header size, as computed, is too large.

TooManyEvlrs(usize)

Too many extended variable length records.

TooManyPoints

Too many points for this version.

Fields of TooManyPoints

n: u64version: Version
TooManyVlrs(usize)

Too many variable length records.

TooSmall(u16)

The header size, as provided by the raw header, is too small.

WktRequired(Format)

Wkt is required for this point format.

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.