pub struct FormatConfig {
pub format: OutputFormat,
pub color: bool,
}Fields§
§format: OutputFormat§color: boolImplementations§
Source§impl FormatConfig
impl FormatConfig
pub fn new(format: OutputFormat) -> Self
pub fn format_output(&self, label: &str, lines: &[String]) -> String
Trait Implementations§
Source§impl Clone for FormatConfig
impl Clone for FormatConfig
Auto Trait Implementations§
impl Freeze for FormatConfig
impl RefUnwindSafe for FormatConfig
impl Send for FormatConfig
impl Sync for FormatConfig
impl Unpin for FormatConfig
impl UnsafeUnpin for FormatConfig
impl UnwindSafe for FormatConfig
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