pub enum Mask {
Ignored,
Alpha,
Black,
}Expand description
Controls the masking behavior that is used when taking a screenshot on simulators of devices that feature rounded corners or a notch.
Variants§
Ignored
Returns the unmasked frame buffer (without any masking applied).
Alpha
Applies a mask to the alpha channel of a screenshot (i.e. the rounded corners and/or notch will be transparent).
Black
Replaces colors outside of the mask with black (i.e. the rounded corners and/or notch will be black).
Trait Implementations§
impl Copy for Mask
impl Eq for Mask
impl StructuralPartialEq for Mask
Auto Trait Implementations§
impl Freeze for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnwindSafe for Mask
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