pub struct Image<'a> {
pub filename: Option<&'a str>,
pub idiom: &'a str,
pub scale: &'a str,
pub size: Option<&'a str>,
}Expand description
A single image within an image set.
Fields§
§filename: Option<&'a str>Original file name of the image.
idiom: &'a strContains the device idiom for which this image should be used. For example, this can be used to distinguish between iPhone and iPad.
scale: &'a strRelative screen DPI for which this image should be used. For example, this can be used to provide both @1x and @2x (or even @3x) rasterizations of the same source image.
size: Option<&'a str>Size of this image.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> Send for Image<'a>
impl<'a> Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnwindSafe for Image<'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