struct Layer {
clip: bool,
blend_mode: BlendMode,
opacity: f32,
mask: Option<Mask>,
}
Fields§
§clip: bool
Whether the layer has a clip associated with it.
blend_mode: BlendMode
The blend mode with which this layer should be blended into the previous layer.
opacity: f32
An opacity to apply to the whole layer before blending it into the backdrop.
mask: Option<Mask>
A mask to apply to the layer before blending it back into the backdrop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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