pub struct ImageInfo {
pub image: Image,
pub scale: f64,
pub debug_label: Option<String>,
}Expand description
A decoded image and how to read it. Flutter ImageInfo.
The scale is what turns pixels into logical points: an image drawn from a two-times asset carries a scale of two and paints at half its pixel size, which is what makes the same asset look right on displays of different densities.
Fields§
§image: ImageThe decoded image itself.
scale: f64Linear pixels per logical point; one means the image draws at its pixel size.
debug_label: Option<String>A name for error messages, such as the asset the image came from.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations§
impl !RefUnwindSafe for ImageInfo
impl !UnwindSafe for ImageInfo
impl Forget for ImageInfo
impl Freeze for ImageInfowhere
*const ArcInner<ImageInner> is !null: Freeze,
PhantomData<ArcInner<ImageInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfowhere
*const ArcInner<ImageInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<ImageInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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