pub struct PreferredSizeWidgetRef { /* private fields */ }Expand description
A PreferredSizeWidget held as a value: the erased widget, whose preferred size is
still answered by the widget it holds. Dart types such a field PreferredSizeWidget.
Implementations§
Source§impl PreferredSizeWidgetRef
impl PreferredSizeWidgetRef
Sourcepub fn new<K, W: PreferredSizeWidget + IntoWidget<K>>(
widget: W,
) -> PreferredSizeWidgetRef
pub fn new<K, W: PreferredSizeWidget + IntoWidget<K>>( widget: W, ) -> PreferredSizeWidgetRef
Erases widget.
Sourcepub fn preferred_size(&self) -> AnySize
pub fn preferred_size(&self) -> AnySize
Trait Implementations§
Source§impl Clone for PreferredSizeWidgetRef
impl Clone for PreferredSizeWidgetRef
Source§impl Debug for PreferredSizeWidgetRef
impl Debug for PreferredSizeWidgetRef
Source§impl IntoWidget<PreferredSizeWidgetRefKind> for PreferredSizeWidgetRef
impl IntoWidget<PreferredSizeWidgetRefKind> for PreferredSizeWidgetRef
Source§fn into_widget(self) -> WidgetRef
fn into_widget(self) -> WidgetRef
The widget as a tree node, made where this is called: its
creation_location.Auto Trait Implementations§
impl !RefUnwindSafe for PreferredSizeWidgetRef
impl !Send for PreferredSizeWidgetRef
impl !Sync for PreferredSizeWidgetRef
impl !UnwindSafe for PreferredSizeWidgetRef
impl Forget for PreferredSizeWidgetRef
impl Freeze for PreferredSizeWidgetRef
impl Move for PreferredSizeWidgetRef
impl Unpin for PreferredSizeWidgetRef
impl UnsafeUnpin for PreferredSizeWidgetRefwhere
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
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