#[non_exhaustive]pub enum BufFill {
Black,
SignalWhite,
}Expand description
Initial pixel fill color for freshly allocated PixelBufs
(PixelBuf::new_with_fill, PixelBuf::new_signal_white).
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.
Black
Zeroed black pixels (alpha slot filled to channel maximum when AlphaMode::Opaque).
SignalWhite
Opaque signal-white fill in the format’s sample encoding. RGB and gray use
nominal signal white (MAX / 1.0 for full range, 235 << shift for narrow
integer range). See PixelBuf::new_signal_white for its HDR meaning.
Trait Implementations§
impl Copy for BufFill
impl Eq for BufFill
impl StructuralPartialEq for BufFill
Auto Trait Implementations§
impl Freeze for BufFill
impl RefUnwindSafe for BufFill
impl Send for BufFill
impl Sync for BufFill
impl Unpin for BufFill
impl UnsafeUnpin for BufFill
impl UnwindSafe for BufFill
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