#[non_exhaustive]pub enum Opacity {
Solid,
Flash,
Translucent,
Transparent,
}Available on crate feature
decode only.Expand description
Opacity of a foreground / background / fill (§8.8; SPC/SWA opacity field,
cea708-decode.md). 2-bit field.
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.
Solid
Fully opaque.
Flash
Alternates opaque / transparent.
Translucent
Partially transparent (background shows through).
Transparent
Fully transparent (not rendered).
Implementations§
Trait Implementations§
impl Copy for Opacity
impl Eq for Opacity
impl StructuralPartialEq for Opacity
Auto Trait Implementations§
impl Freeze for Opacity
impl RefUnwindSafe for Opacity
impl Send for Opacity
impl Sync for Opacity
impl Unpin for Opacity
impl UnsafeUnpin for Opacity
impl UnwindSafe for Opacity
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