pub struct PopupMenuEntryRef<T: 'static> { /* private fields */ }Expand description
A PopupMenuEntry held as a value: the erased widget, whose height and values are still
answered by the entry it holds. Dart types such a value PopupMenuEntry<T>.
Implementations§
Source§impl<T: 'static> PopupMenuEntryRef<T>
impl<T: 'static> PopupMenuEntryRef<T>
Sourcepub fn new<K, E: PopupMenuEntry<T> + IntoWidget<K>>(
entry: E,
) -> PopupMenuEntryRef<T>
pub fn new<K, E: PopupMenuEntry<T> + IntoWidget<K>>( entry: E, ) -> PopupMenuEntryRef<T>
Erases entry.
Sourcepub fn represents(&self, value: Option<&T>) -> bool
pub fn represents(&self, value: Option<&T>) -> bool
Trait Implementations§
Source§impl<T: 'static> Clone for PopupMenuEntryRef<T>
impl<T: 'static> Clone for PopupMenuEntryRef<T>
Source§fn clone(&self) -> PopupMenuEntryRef<T>
fn clone(&self) -> PopupMenuEntryRef<T>
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 moreSource§impl<T: 'static> Debug for PopupMenuEntryRef<T>
impl<T: 'static> Debug for PopupMenuEntryRef<T>
Source§impl<T: 'static> IntoWidget<PopupMenuEntryRefKind> for PopupMenuEntryRef<T>
impl<T: 'static> IntoWidget<PopupMenuEntryRefKind> for PopupMenuEntryRef<T>
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<T> !RefUnwindSafe for PopupMenuEntryRef<T>
impl<T> !Send for PopupMenuEntryRef<T>
impl<T> !Sync for PopupMenuEntryRef<T>
impl<T> !UnwindSafe for PopupMenuEntryRef<T>
impl<T> Forget for PopupMenuEntryRef<T>
impl<T> Freeze for PopupMenuEntryRef<T>
impl<T> Move for PopupMenuEntryRef<T>
impl<T> Unpin for PopupMenuEntryRef<T>
impl<T> UnsafeUnpin for PopupMenuEntryRef<T>where
*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