pub enum ExternalImageSource<'a> {
RawData(&'a [u8]),
NativeTexture(u32),
Invalid,
}
Expand description
The source for an external image.
Variants§
RawData(&'a [u8])
A raw pixel buffer.
NativeTexture(u32)
A gl::GLuint texture handle.
Invalid
An invalid source.
Auto Trait Implementations§
impl<'a> Freeze for ExternalImageSource<'a>
impl<'a> RefUnwindSafe for ExternalImageSource<'a>
impl<'a> Send for ExternalImageSource<'a>
impl<'a> Sync for ExternalImageSource<'a>
impl<'a> Unpin for ExternalImageSource<'a>
impl<'a> UnwindSafe for ExternalImageSource<'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