#[non_exhaustive]pub enum ViewImage<'a> {
Bitmap(&'a Rc<Surface>, u32),
Svg(&'a Rc<Svg>),
}Expand description
what ui.image_view shows
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.
Bitmap(&'a Rc<Surface>, u32)
a bitmap (FMT_PARGB, FMT_ARGB or FMT_XRGB) and its version (bump it when the pixels change)
Svg(&'a Rc<Svg>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ViewImage<'a>
impl<'a> !Send for ViewImage<'a>
impl<'a> !Sync for ViewImage<'a>
impl<'a> !UnwindSafe for ViewImage<'a>
impl<'a> Forget for ViewImage<'a>
impl<'a> Freeze for ViewImage<'a>
impl<'a> Unpin for ViewImage<'a>
impl<'a> UnsafeUnpin for ViewImage<'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