pub struct MenuPageId(pub u16);Expand description
Opaque identifier for a [MenuPage] within a Menu.
Assigned sequentially by Menu::add_page.
PAGE_NONE is the sentinel for “no page”.
Tuple Fields§
§0: u16Trait Implementations§
Source§impl Clone for MenuPageId
impl Clone for MenuPageId
Source§fn clone(&self) -> MenuPageId
fn clone(&self) -> MenuPageId
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 MenuPageId
Source§impl Debug for MenuPageId
impl Debug for MenuPageId
impl Eq for MenuPageId
Source§impl PartialEq for MenuPageId
impl PartialEq for MenuPageId
impl StructuralPartialEq for MenuPageId
Auto Trait Implementations§
impl Freeze for MenuPageId
impl RefUnwindSafe for MenuPageId
impl Send for MenuPageId
impl Sync for MenuPageId
impl Unpin for MenuPageId
impl UnsafeUnpin for MenuPageId
impl UnwindSafe for MenuPageId
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