pub enum StringKey {
Num(u32),
Name(String),
}Expand description
A key in a language file.
A key may be either a nonnegative integer or an arbitrary string.
The original game supports only nonnegative integers. The HD Edition allows for integers as well as Strings to serve as keys in a key value file.
Variants§
Num(u32)
An integer string key.
Name(String)
A named string key.
The string must not represent a u32 value (such keys must be Num).
Implementations§
Trait Implementations§
impl Eq for StringKey
impl StructuralPartialEq for StringKey
Auto Trait Implementations§
impl Freeze for StringKey
impl RefUnwindSafe for StringKey
impl Send for StringKey
impl Sync for StringKey
impl Unpin for StringKey
impl UnsafeUnpin for StringKey
impl UnwindSafe for StringKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more