Struct jortestkit::console::ConsoleWriter
source · pub struct ConsoleWriter {
app_name: String,
title: String,
prompt: String,
description: Vec<String>,
}
Fields§
§app_name: String
§title: String
§prompt: String
§description: Vec<String>
Implementations§
source§impl ConsoleWriter
impl ConsoleWriter
pub fn new( app_name: String, title: String, prompt: String, description: Vec<String> ) -> Self
pub fn format_error(&self, err: InteractiveCommandError)
pub fn show_help(&self, error: InteractiveCommandError)
pub fn show_prompt(&self)
pub fn show_info(&self)
Trait Implementations§
source§impl Clone for ConsoleWriter
impl Clone for ConsoleWriter
source§fn clone(&self) -> ConsoleWriter
fn clone(&self) -> ConsoleWriter
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConsoleWriter
impl Send for ConsoleWriter
impl Sync for ConsoleWriter
impl Unpin for ConsoleWriter
impl UnwindSafe for ConsoleWriter
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