Struct sauce::output::Output [−][src]
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]
&self,
headers: &[&str],
data: Vec<Vec<&str>>,
preset: Option<&str>
) -> String
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]
&mut self,
code: ErrorCode,
message: &[ANSIString<'_>]
) -> bool
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]
&mut self,
file: &Path,
document: &mut Document,
heading: &str,
values: I
) where
I: IntoIterator<Item = (T, Item)>,
T: AsRef<str>,
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,