pub struct ResolvedPosition {
pub bounds: Bounds<Pixels>,
pub placement: Option<Placement>,
}Expand description
The bounds a popup resolved to, and the side it ended up on.
Fields§
§bounds: Bounds<Pixels>Final popup bounds in window coordinates.
placement: Option<Placement>The side the popup was placed on. None for corner positioning, which
has no notion of a side.
Trait Implementations§
Source§impl Clone for ResolvedPosition
impl Clone for ResolvedPosition
Source§fn clone(&self) -> ResolvedPosition
fn clone(&self) -> ResolvedPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolvedPosition
Source§impl Debug for ResolvedPosition
impl Debug for ResolvedPosition
Source§impl PartialEq for ResolvedPosition
impl PartialEq for ResolvedPosition
impl StructuralPartialEq for ResolvedPosition
Auto Trait Implementations§
impl Freeze for ResolvedPosition
impl RefUnwindSafe for ResolvedPosition
impl Send for ResolvedPosition
impl Sync for ResolvedPosition
impl Unpin for ResolvedPosition
impl UnsafeUnpin for ResolvedPosition
impl UnwindSafe for ResolvedPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more