#[non_exhaustive]pub enum OpacityNode {
Segment {
start: usize,
end: usize,
},
Group {
opacity: f32,
children: Vec<OpacityNode>,
},
}Expand description
A flattened opacity-group tree derived from RenderList::opacity_plan.
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.
Segment
A range of paint items drawn directly into the current target.
Group
A range that is composited into an offscreen layer at opacity.
Trait Implementations§
Source§impl Clone for OpacityNode
impl Clone for OpacityNode
Source§impl Debug for OpacityNode
impl Debug for OpacityNode
Source§impl PartialEq for OpacityNode
impl PartialEq for OpacityNode
impl StructuralPartialEq for OpacityNode
Auto Trait Implementations§
impl Freeze for OpacityNode
impl RefUnwindSafe for OpacityNode
impl Send for OpacityNode
impl Sync for OpacityNode
impl Unpin for OpacityNode
impl UnsafeUnpin for OpacityNode
impl UnwindSafe for OpacityNode
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