#[non_exhaustive]pub enum Glass {
Regular,
Clear,
Tinted(Color),
}Expand description
Liquid Glass behind a view (see ViewExt::glass).
On macOS 15, where there’s no Liquid Glass, a translucent popover
material takes its place.
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.
Regular
The standard glass: frosted, for controls and panels.
Clear
Clearer glass, for content over rich backgrounds (photos, video).
Tinted(Color)
Regular glass tinted with a colour (give it some transparency).
Trait Implementations§
impl Copy for Glass
impl StructuralPartialEq for Glass
Auto Trait Implementations§
impl Freeze for Glass
impl RefUnwindSafe for Glass
impl Send for Glass
impl Sync for Glass
impl Unpin for Glass
impl UnsafeUnpin for Glass
impl UnwindSafe for Glass
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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