pub enum Placement {
Below,
Above,
Start,
End,
}Expand description
Where an anchored overlay’s content sits relative to its trigger widget. Maps to the .rsx placement
attribute. Only vertical placements are provided today; horizontal ones would follow the same pattern.
Variants§
Below
Content’s top-left at the trigger’s bottom-left — a menu dropping down from its button.
Above
Content’s bottom-left at the trigger’s top-left — a menu opening upward.
Start
Beside the trigger on its leading side, centred on it — where a tooltip goes when the trigger sits in a vertical rail and the room is sideways.
End
Beside the trigger on its trailing side, centred on it.
Trait Implementations§
impl Copy 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