pub struct Config { /* private fields */ }Available on crate feature
header only.Expand description
Convenience configuration around crate::Pretty to ease output generation.
§Example
use vergen_pretty::Style;
let mut buf = vec![];
let config = Config::builder()
.style(Style::new().green())
.prefix("HEADER_PREFIX")
.env(vergen_pretty_env!())
.suffix("HEADER_SUFFIX")
.build();
assert!(header(&config, Some(&mut buf)).is_ok());
assert!(!buf.is_empty());Implementations§
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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