pub struct ImageValueMark;Expand description
Marker for the by-value conversions (a name, bytes, a bitmap, a source).
Trait Implementations§
Source§impl IntoImageSource<ImageValueMark> for ImageSource
impl IntoImageSource<ImageValueMark> for ImageSource
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for ImageName
impl IntoImageSource<ImageValueMark> for ImageName
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for VectorName
impl IntoImageSource<ImageValueMark> for VectorName
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for BitmapId
impl IntoImageSource<ImageValueMark> for BitmapId
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for String
impl IntoImageSource<ImageValueMark> for String
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for Vec<u8>
impl IntoImageSource<ImageValueMark> for Vec<u8>
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for Arc<Vec<u8>>
impl IntoImageSource<ImageValueMark> for Arc<Vec<u8>>
fn into_image_source(self) -> Reactive<ImageSource>
Source§impl IntoImageSource<ImageValueMark> for &Bitmap
A decoded image draws by id, so several nodes (and the canvas) share one decode.
A decoded handle. The piece keeps a clone alive for the node’s life: the closure below owns
it, the binding owns the closure, and the node’s scope owns the binding, so the toolkit’s
image outlives the view that shows it however the app juggles its own handle. Without this an
image(&bitmap) would carry only the id, and on the web the <img> would point at an object
URL that release_image had already revoked.
impl IntoImageSource<ImageValueMark> for &Bitmap
A decoded image draws by id, so several nodes (and the canvas) share one decode.
A decoded handle. The piece keeps a clone alive for the node’s life: the closure below owns
it, the binding owns the closure, and the node’s scope owns the binding, so the toolkit’s
image outlives the view that shows it however the app juggles its own handle. Without this an
image(&bitmap) would carry only the id, and on the web the <img> would point at an object
URL that release_image had already revoked.
fn into_image_source(self) -> Reactive<ImageSource>
Auto Trait Implementations§
impl Freeze for ImageValueMark
impl RefUnwindSafe for ImageValueMark
impl Send for ImageValueMark
impl Sync for ImageValueMark
impl Unpin for ImageValueMark
impl UnsafeUnpin for ImageValueMark
impl UnwindSafe for ImageValueMark
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
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