pub enum Source<'a> {
View {
view: View<'a>,
mime_type: &'a str,
},
Uri {
uri: &'a str,
mime_type: Option<&'a str>,
},
}
Expand description
Describes an image data source.
Variants§
View
Fields
Image data is contained in a buffer view.
Uri
Fields
Image data is contained in an external data source.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'a>
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