pub enum UiImageSource {
Static(&'static str),
File(PathBuf),
Url(String),
Bytes {
key: String,
version: u64,
bytes: Arc<Vec<u8>>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for UiImageSource
impl Clone for UiImageSource
Source§fn clone(&self) -> UiImageSource
fn clone(&self) -> UiImageSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UiImageSource
impl Debug for UiImageSource
impl Eq for UiImageSource
Source§impl From<&'static str> for UiImageSource
impl From<&'static str> for UiImageSource
Source§impl From<UiImageSource> for ImageRequest
impl From<UiImageSource> for ImageRequest
Source§fn from(source: UiImageSource) -> Self
fn from(source: UiImageSource) -> Self
Converts to this type from the input type.
Source§impl Hash for UiImageSource
impl Hash for UiImageSource
Source§impl PartialEq for UiImageSource
impl PartialEq for UiImageSource
impl StructuralPartialEq for UiImageSource
Auto Trait Implementations§
impl Freeze for UiImageSource
impl RefUnwindSafe for UiImageSource
impl Send for UiImageSource
impl Sync for UiImageSource
impl Unpin for UiImageSource
impl UnsafeUnpin for UiImageSource
impl UnwindSafe for UiImageSource
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