pub enum Layer {
Overlay,
Notice,
}Expand description
Which floating surface sits over which, named by what floats.
Two roles and no ladder: an overlay is a scrim and the panel in it (a
modal, a picker that covers the page); a notice is a transient message,
which stays readable over an open overlay. Everything else stacks in
document order. Unitless z-index values, the same at every density.
Variants§
Overlay
A scrim over the page and the panel it holds.
Notice
A transient message, above an open overlay.
Implementations§
Trait Implementations§
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin 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