Struct tego::Version[][src]

pub struct Version(pub u32, pub u32, pub Option<u32>);
Expand description

Version number consisting out of a MAJOR and MINOR version number, followed by an optional PATCH

Tuple Fields

0: u32

Major version

1: u32

Minor version

2: Option<u32>

Patch version

Trait Implementations

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.