pub struct FancyTheme { /* private fields */ }Expand description
A Theme that displays with a rich UI.
Implementations§
Source§impl FancyTheme
impl FancyTheme
Trait Implementations§
Source§impl Default for FancyTheme
impl Default for FancyTheme
Source§impl<W: Write> Theme<W> for FancyTheme
impl<W: Write> Theme<W> for FancyTheme
Source§fn log(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn log( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages without decoration.
Source§fn info(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn info( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages with info decoration.
Source§fn warn(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn warn( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages with warning decoration.
Source§fn error(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn error( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages with error decoration.
Source§fn success(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn success( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages with success decoration.
Source§fn step(
&mut self,
term: &mut dyn Terminal<W>,
message: String,
) -> Result<(), Error>
fn step( &mut self, term: &mut dyn Terminal<W>, message: String, ) -> Result<(), Error>
Output of messages with a step decoration.
Source§fn begin(
&mut self,
term: &mut dyn Terminal<W>,
intro: Option<String>,
) -> Result<(), Error>
fn begin( &mut self, term: &mut dyn Terminal<W>, intro: Option<String>, ) -> Result<(), Error>
Renders the start of a prompt session.
It can render a title or message received as
It can render a title or message received as
intro.Auto Trait Implementations§
impl Freeze for FancyTheme
impl RefUnwindSafe for FancyTheme
impl Send for FancyTheme
impl Sync for FancyTheme
impl Unpin for FancyTheme
impl UnwindSafe for FancyTheme
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