pub struct Anchor { /* private fields */ }Expand description
Where a popup goes: next to a rectangle, kept inside the viewport.
Implementations§
Source§impl Anchor
impl Anchor
Sourcepub fn below(rect: Rect) -> Self
pub fn below(rect: Rect) -> Self
Below rect, its left edges lined up (a menu under its menu bar title); above rect
if it does not fit below.
Trait Implementations§
impl Copy for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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