[−][src]Struct epkard::CliFrontend
A frontend that uses stdin and stdout
Methods
impl CliFrontend
[src]
pub fn new() -> Self
[src]
Create a new CliFrontend
pub fn with_bg_color(color: Color) -> Self
[src]
Create a new CliFrontend
with the given background color
Trait Implementations
impl Frontend for CliFrontend
[src]
fn background_color(&self) -> Color
[src]
fn set_background_color(&mut self, color: Color)
[src]
fn clear(&mut self)
[src]
fn print_colored<S: ToString>(&mut self, text: S, color: Color)
[src]
fn newline(&mut self)
[src]
fn input(&mut self) -> String
[src]
fn print<S: ToString>(&mut self, text: S)
[src]
fn println<S: ToString>(&mut self, text: S)
[src]
impl Default for CliFrontend
[src]
Auto Trait Implementations
impl Sync for CliFrontend
impl Send for CliFrontend
impl Unpin for CliFrontend
impl UnwindSafe for CliFrontend
impl RefUnwindSafe for CliFrontend
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,