Struct las::Version [] [src]

pub struct Version {
    pub major: u8,
    pub minor: u8,
}

LAS version.

Fields

The major version.

For now, always 1.

The minor version.

Methods

impl Version
[src]

Creates a new version.

Examples

let version = Version::new(1, 2);

Does this version have a file source id in the header?

Examples

assert!(!Version::new(1, 0).has_file_source_id());
assert!(Version::new(1, 1).has_file_source_id());

Does this version have a global encoding field?

Examples

assert!(!Version::new(1, 0).has_global_encoding());
assert!(!Version::new(1, 1).has_global_encoding());
assert!(Version::new(1, 2).has_global_encoding());

Is the classification field for this version mandatory?

Examples

assert!(!Version::new(1, 0).has_mandatory_classification());
assert!(Version::new(1, 1).has_mandatory_classification());

Trait Implementations

impl PartialEq for Version
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Version
[src]

Formats the value using the given formatter.

impl Copy for Version
[src]

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Version
[src]

Returns the "default value" for a type. Read more