pub struct Menu { /* private fields */ }
Implementations
sourceimpl Menu
impl Menu
pub fn new(header: String) -> Self
pub fn append(&mut self, entry: MenuEntry)
pub fn get_choice(
&mut self,
canvas: &mut WindowCanvas,
tileprovider: &dyn TileProvider,
event_pump: &mut EventPump,
event_sender: &EventSender,
timer_subsystem: &TimerSubsystem
) -> Result<char>
Auto Trait Implementations
impl RefUnwindSafe for Menu
impl Send for Menu
impl Sync for Menu
impl Unpin for Menu
impl UnwindSafe for Menu
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more