Struct sauce::output::Output[][src]

pub struct Output { /* fields omitted */ }

Implementations

impl Output[src]

pub fn new(out: Box<dyn Write>, err: Box<dyn Write>) -> Self[src]

pub fn quiet(self, value: bool) -> Self[src]

pub fn set_quiet(&mut self, value: bool)[src]

pub fn verbose(self, value: bool) -> Self[src]

pub fn set_verbose(&mut self, value: bool)[src]

pub fn color(self, value: bool) -> Self[src]

pub fn only_show(self, value: bool) -> Self[src]

pub fn format_table(
    &self,
    headers: &[&str],
    data: Vec<Vec<&str>>,
    preset: Option<&str>
) -> String
[src]

pub fn output(&mut self, output: impl Display) -> bool[src]

pub fn notify(&mut self, message: &[ANSIString<'_>]) -> bool[src]

pub fn notify_str(&mut self, message: &str) -> bool[src]

pub fn notify_error(
    &mut self,
    code: ErrorCode,
    message: &[ANSIString<'_>]
) -> bool
[src]

pub fn error_code(&self) -> Option<i32>[src]

pub fn flush(&mut self) -> Result<()>[src]

pub fn write_toml<I, T>(
    &mut self,
    file: &Path,
    document: &mut Document,
    heading: &str,
    values: I
) where
    I: IntoIterator<Item = (T, Item)>,
    T: AsRef<str>, 
[src]

Trait Implementations

impl Debug for Output[src]

Auto Trait Implementations

impl !RefUnwindSafe for Output

impl !Send for Output

impl !Sync for Output

impl Unpin for Output

impl !UnwindSafe for Output

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.