pub struct Env {
pub wrap_cols: usize,
pub color: ColorMode,
pub suggest: bool,
pub auto_help: bool,
pub version: Option<&'static str>,
pub author: Option<&'static str>,
}Expand description
Global environment for a parse/render session.
Fields§
§wrap_cols: usizeWrap columns for help. 0 means no wrapping.
color: ColorModeWhether to colorize help (honors NO_COLOR when color feature is enabled).
suggest: boolWhether to compute suggestions on errors (if enabled).
auto_help: boolBuilt-ins
version: Option<&'static str>Trait Implementations§
impl Copy for Env
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
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