Expand description
Internal utilities for genie-rs modules.
Macros§
- f32_eq
- Check if two 32 bit floating point numbers are equal, with some error.
- f32_neq
- Check if two 32 bit floating point numbers are not equal, with some error.
- fallible_
try_ from - Create a TryFrom implementation for an ID container type that tries to wrap the given number type into the container.
- fallible_
try_ into - Create a TryInto implementation for an ID container type that tries to returns its contained number as the given target type.
- infallible_
try_ into - Create an infallible TryInto implementation for an ID container type that returns its contained number as the given target type.
Structs§
- SpriteID
- An ID identifying a sprite.
- TechID
- An ID identifying a tech.
- TryFrom
String KeyError - Error that may occur when converting a StringKey to some other Rust value, such as an integer or a string.
- Unit
TypeID - An ID identifying a unit type.
Enums§
- String
Key - A key in a language file.
Traits§
- MapInto
- Helper trait to map a container of T to a container of some type F that implements From
. - Read
Skip Ext - Extension trait that adds a
skip()
method toRead
instances.
Functions§
- read_
opt_ u16 - Read a 2-byte integer that uses -1 as an “absent” value.
- read_
opt_ u32 - Read a 4-byte integer that uses -1 as an “absent” value.