#[non_exhaustive]pub enum UiDraw<'a> {
Sprite(&'a SpriteDraw),
Text(&'a TextDraw, &'a str),
}Expand description
One entry of a UiList, as UiList::iter gives it.
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.
Sprite(&'a SpriteDraw)
A sprite: its position and size in UI units.
Text(&'a TextDraw, &'a str)
A text, with its draw: its position in UI units, a UI unit a pixel of its font.
Trait Implementations§
impl<'a> Copy for UiDraw<'a>
impl<'a> StructuralPartialEq for UiDraw<'a>
Auto Trait Implementations§
impl<'a> Forget for UiDraw<'a>
impl<'a> Freeze for UiDraw<'a>
impl<'a> Move for UiDraw<'a>
impl<'a> RefUnwindSafe for UiDraw<'a>
impl<'a> Send for UiDraw<'a>
impl<'a> Sync for UiDraw<'a>
impl<'a> Unpin for UiDraw<'a>
impl<'a> UnsafeUnpin for UiDraw<'a>
impl<'a> UnwindSafe for UiDraw<'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