#[non_exhaustive]pub enum TextPart {
Screen,
Data,
Dialogue,
LangName,
}Expand description
Which part of a language a text is from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Screen
Screen text, by key (English’s screen text, a pack’s ui.ron).
Data
Data text, by key: names (names.<id>) and the game’s other data
text (a pack’s data.ron).
Dialogue
A dialogue line or caption (a .dlg file, a pack’s
dialogue/<file>.ron).
LangName
A pack’s name for its language (lang.ron’s name), which the
language menu shows whatever language is on.
Trait Implementations§
impl Copy for TextPart
impl Eq for TextPart
Source§impl Ord for TextPart
impl Ord for TextPart
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for TextPart
impl PartialOrd for TextPart
impl StructuralPartialEq for TextPart
Auto Trait Implementations§
impl Freeze for TextPart
impl RefUnwindSafe for TextPart
impl Send for TextPart
impl Sync for TextPart
impl Unpin for TextPart
impl UnsafeUnpin for TextPart
impl UnwindSafe for TextPart
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