pub enum MenuButton {
button(ButtonItem),
root_button(RootButton),
}
Variants§
Trait Implementations§
Source§impl Clone for MenuButton
impl Clone for MenuButton
Source§fn clone(&self) -> MenuButton
fn clone(&self) -> MenuButton
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MenuButton
impl Debug for MenuButton
Source§impl<'de> Deserialize<'de> for MenuButton
impl<'de> Deserialize<'de> for MenuButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ButtonItem> for MenuButton
impl From<ButtonItem> for MenuButton
Source§fn from(btns: ButtonItem) -> Self
fn from(btns: ButtonItem) -> Self
Converts to this type from the input type.
Source§impl From<RootButton> for MenuButton
impl From<RootButton> for MenuButton
Source§fn from(r_btn: RootButton) -> Self
fn from(r_btn: RootButton) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MenuButton
impl RefUnwindSafe for MenuButton
impl Send for MenuButton
impl Sync for MenuButton
impl Unpin for MenuButton
impl UnwindSafe for MenuButton
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