pub struct BitmapId(pub u64);Expand description
A decoded image the toolkit holds, addressed by an id day-core mints.
Opaque, because what sits behind it is an NSImage, a UIImage, a GdkTexture, a
QPixmap, a BitmapImage, an android Bitmap or an ImageBitmap, and none of those cross
the boundary. The id is released through Toolkit::release_image when the app’s handle
drops, so a backend’s side table never outlives the app’s interest in it.
Tuple Fields§
§0: u64Trait Implementations§
impl Copy for BitmapId
impl Eq for BitmapId
Source§impl From<BitmapId> for ImageSource
impl From<BitmapId> for ImageSource
Source§impl Ord for BitmapId
impl Ord for BitmapId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BitmapId
impl PartialOrd for BitmapId
impl StructuralPartialEq for BitmapId
Auto Trait Implementations§
impl Freeze for BitmapId
impl RefUnwindSafe for BitmapId
impl Send for BitmapId
impl Sync for BitmapId
impl Unpin for BitmapId
impl UnsafeUnpin for BitmapId
impl UnwindSafe for BitmapId
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