Struct gds21::GdsFloat64[][src]

pub struct GdsFloat64;
Expand description

GDSII’s Home-Grown Floating-Point Format

Incredibly, GDSII is old enough to have its own float-format, like most computers did before IEEE754.

The GdsFloat64 struct is not used as a data-store, but largely a namespace for the encode and decode operations to and from IEEE754 double-precision format.

Implementations

Decode GDSII’s eight-byte representation, stored as a u64, to IEEE (and Rust)-compatible f64

Encode f64 to GDSII’s eight bytes, stored as u64.

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.