pub struct KnownSizeWrapper<W> {
pub inner: W,
pub width: usize,
pub height: usize,
}Expand description
The KnownSizeWrapper struct wraps a widget and provides a fixed size for it.
This struct is used to wrap a widget and provide a fixed size for it. This is useful when you
want to use a widget that does not implement KnownSize as the body of a popup.
Fields§
§inner: W§width: usize§height: usizeImplementations§
Source§impl<W> KnownSizeWrapper<W>
impl<W> KnownSizeWrapper<W>
Trait Implementations§
Source§impl<W: Debug> Debug for KnownSizeWrapper<W>
impl<W: Debug> Debug for KnownSizeWrapper<W>
Source§impl<W> KnownSize for &KnownSizeWrapper<W>
impl<W> KnownSize for &KnownSizeWrapper<W>
Source§impl<W> KnownSize for KnownSizeWrapper<W>
impl<W> KnownSize for KnownSizeWrapper<W>
Source§impl<W> Widget for &KnownSizeWrapper<W>
impl<W> Widget for &KnownSizeWrapper<W>
Auto Trait Implementations§
impl<W> Freeze for KnownSizeWrapper<W>where
W: Freeze,
impl<W> RefUnwindSafe for KnownSizeWrapper<W>where
W: RefUnwindSafe,
impl<W> Send for KnownSizeWrapper<W>where
W: Send,
impl<W> Sync for KnownSizeWrapper<W>where
W: Sync,
impl<W> Unpin for KnownSizeWrapper<W>where
W: Unpin,
impl<W> UnwindSafe for KnownSizeWrapper<W>where
W: UnwindSafe,
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> 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