Enum i_slint_core::ImageInner
source · [−]#[repr(u8)]
pub enum ImageInner {
None,
AbsoluteFilePath(SharedString),
EmbeddedData {
data: Slice<'static, u8>,
format: Slice<'static, u8>,
},
EmbeddedImage(SharedImageBuffer),
StaticTextures(&'static StaticTextures),
}
Expand description
A resource is a reference to binary data, for example images. They can be accessible on the file system or embedded in the resulting binary. Or they might be URLs to a web server and a downloaded is necessary before they can be used. cbindgen:prefix-with-name
Variants
None
A resource that does not represent any data.
AbsoluteFilePath(SharedString)
A resource that points to a file in the file system
EmbeddedData
A image file that is embedded in the program as is. The format is the extension
EmbeddedImage(SharedImageBuffer)
StaticTextures(&'static StaticTextures)
Implementations
sourceimpl ImageInner
impl ImageInner
Trait Implementations
sourceimpl Clone for ImageInner
impl Clone for ImageInner
sourcefn clone(&self) -> ImageInner
fn clone(&self) -> ImageInner
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageInner
impl Debug for ImageInner
sourceimpl Default for ImageInner
impl Default for ImageInner
sourceimpl<'a> From<&'a Image> for &'a ImageInner
impl<'a> From<&'a Image> for &'a ImageInner
sourceimpl From<ImageInner> for Image
impl From<ImageInner> for Image
sourcefn from(original: ImageInner) -> Image
fn from(original: ImageInner) -> Image
Converts to this type from the input type.
sourceimpl PartialEq<ImageInner> for ImageInner
impl PartialEq<ImageInner> for ImageInner
sourcefn eq(&self, other: &ImageInner) -> bool
fn eq(&self, other: &ImageInner) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageInner) -> bool
fn ne(&self, other: &ImageInner) -> bool
This method tests for !=
.
impl StructuralPartialEq for ImageInner
Auto Trait Implementations
impl RefUnwindSafe for ImageInner
impl !Send for ImageInner
impl !Sync for ImageInner
impl Unpin for ImageInner
impl UnwindSafe for ImageInner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more