Enum las::Error
[−]
[src]
pub enum Error { ClosedWriter, Utf8(Utf8Error), InvalidFileSignature(String), InvalidPointDataRecordLength(Format, u16), Io(Error), MissingColor(Format, Point), MissingGpsTime(Format, Point), NotAscii(String), NotNulFilled(Vec<u8>), ReservedIsNotZero, UnsupportedPointFormat(Format), }
Crate-specific error enum.
Variants
ClosedWriter
The Writer
is closed and cannot be written to.
Utf8(Utf8Error)
Wrapper around std::str::Utf8Error
.
InvalidFileSignature(String)
The file signature was not "LASF".
InvalidPointDataRecordLength(Format, u16)
The point data record length is less than the point format demands.
Io(Error)
Wrapper around std::io::Error
.
MissingColor(Format, Point)
The point format requires color, but the point did not have color set.
MissingGpsTime(Format, Point)
The point format requires gps time, but the point did not have gps time set.
NotAscii(String)
This string is not ASCII, and it was suppoed to be.
NotNulFilled(Vec<u8>)
The buffer was not filled with nuls after the last ASCII character.
ReservedIsNotZero
The reserved field is not zero.
UnsupportedPointFormat(Format)
The point format is not supported by this library.
It might be valid, but we just can't handle it.