pub struct MenuSnapshotHandle { /* private fields */ }Available on crate feature
snapshot only.Expand description
A thread-safe handle to a menu tree.
Implementations§
Source§impl MenuSnapshotHandle
impl MenuSnapshotHandle
Sourcepub fn items(&self) -> Vec<MenuItemKindSnapshot>
pub fn items(&self) -> Vec<MenuItemKindSnapshot>
Returns thread-safe snapshot handles for the menu’s current items.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuSnapshotHandle
impl RefUnwindSafe for MenuSnapshotHandle
impl Send for MenuSnapshotHandle
impl Sync for MenuSnapshotHandle
impl Unpin for MenuSnapshotHandle
impl UnsafeUnpin for MenuSnapshotHandle
impl UnwindSafe for MenuSnapshotHandle
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