[−][src]Crate genie_support
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. |
TryFromStringKeyError | Error that may occur when converting a StringKey to some other Rust value, such as an integer or a string. |
UnitTypeID | An ID identifying a unit type. |
Enums
StringKey | 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 |
ReadSkipExt | Extension trait that adds a |
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. |