pub enum ImageSource {
Owned(Vec<u8>, bool),
LocalFile(PathBuf, bool),
Stream(Box<dyn ImageStream + Send + Sync>),
}Expand description
Image source.
Variants§
Owned(Vec<u8>, bool)
Owned data, optionally compressed.
LocalFile(PathBuf, bool)
Local file, optionally compressed.
Stream(Box<dyn ImageStream + Send + Sync>)
Stream.
Implementations§
Source§impl ImageSource
impl ImageSource
Sourcepub fn into_owned(&mut self) -> Result<()>
pub fn into_owned(&mut self) -> Result<()>
Into owned.
Auto Trait Implementations§
impl Freeze for ImageSource
impl !RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnsafeUnpin for ImageSource
impl !UnwindSafe for ImageSource
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