pub enum RowItem<'a> {
Icon(Icon, f32, Color),
Text(&'a str, f32, Color),
Key(&'a str),
Pips(u32, u32, Color),
Gap(f32),
}Expand description
One piece of a row: the vocabulary of an icon-first HUD line.
Variants§
Icon(Icon, f32, Color)
A pictogram in a size box.
Text(&'a str, f32, Color)
Modern-face text at size.
Key(&'a str)
A key cap such as E or Space.
Pips(u32, u32, Color)
Progress pips: (current, total, color), see pips.
Gap(f32)
Extra horizontal space.
Trait Implementations§
impl<'a> Copy for RowItem<'a>
impl<'a> StructuralPartialEq for RowItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for RowItem<'a>
impl<'a> RefUnwindSafe for RowItem<'a>
impl<'a> Send for RowItem<'a>
impl<'a> Sync for RowItem<'a>
impl<'a> Unpin for RowItem<'a>
impl<'a> UnwindSafe for RowItem<'a>
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