pub struct ImageSource {
pub width: u32,
pub height: u32,
/* private fields */
}
Expand description
An image to be used with the img component.
An image source can only be created from memory, e.g. together with
the include_bytes!
macro. There is currently no way to load an
image from a file or other assets.
Fields§
§width: u32
§height: u32
Implementations§
Source§impl ImageSource
impl ImageSource
Trait Implementations§
Source§impl Debug for ImageSource
impl Debug for ImageSource
Auto Trait Implementations§
impl Freeze for ImageSource
impl RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnwindSafe for ImageSource
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