pub struct Host;Expand description
Represents the Monotron we’re running on. Can be passed to write! and
friends.
Implementations§
Source§impl Host
impl Host
Sourcepub fn move_cursor(row: Row, col: Col)
pub fn move_cursor(row: Row, col: Col)
Move the cursor on the screen.
Sourcepub fn play<F>(
_frequency: F,
_channel: Channel,
_waveform: Waveform,
_volume: u8,
)
pub fn play<F>( _frequency: F, _channel: Channel, _waveform: Waveform, _volume: u8, )
Start playing a tone. It will continue.
Sourcepub fn get_joystick() -> JoystickState
pub fn get_joystick() -> JoystickState
Get the Joystick state
Sourcepub fn set_cursor_visible(_visible: bool)
pub fn set_cursor_visible(_visible: bool)
Show/hide the cursor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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