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§fn from(id: BitmapId) -> ImageSource
fn from(id: BitmapId) -> ImageSource
Converts to this type from the input type.
Source§impl IntoImageSource<ImageValueMark> for BitmapId
impl IntoImageSource<ImageValueMark> for BitmapId
fn into_image_source(self) -> Reactive<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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more