pub enum Placement {
Below,
Center,
Tooltip,
Left,
Right,
Bottom,
}Expand description
Where to place the overlay relative to its anchor, or to the window.
Variants§
Below
Just below the anchor (a dropdown menu).
Center
Centred in the window, with a scrim (a modal).
Tooltip
Above the anchor, only while the anchor is hovered (a tooltip).
Left
A full-height panel against the left edge of the window, with a
scrim (a side drawer). See crate::Drawer.
Right
A full-height panel against the right edge of the window, with a
scrim (a side drawer). See crate::Drawer.
Bottom
A full-width panel against the bottom edge of the window, sliding up,
with a scrim (a modal sheet). See crate::BottomSheet.
Trait Implementations§
impl Copy for Placement
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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