Enum femtovg::ImageSource
source · [−]#[non_exhaustive]
pub enum ImageSource<'a> {
Rgb(ImgRef<'a, RGB8>),
Rgba(ImgRef<'a, RGBA8>),
Gray(ImgRef<'a, GRAY8>),
}
Expand description
Image source
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rgb(ImgRef<'a, RGB8>)
Rgba(ImgRef<'a, RGBA8>)
Gray(ImgRef<'a, GRAY8>)
Implementations
Source format
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImageSource<'a>
impl<'a> Send for ImageSource<'a>
impl<'a> Sync for ImageSource<'a>
impl<'a> Unpin for ImageSource<'a>
impl<'a> UnwindSafe for ImageSource<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more