Enum ptree::print_config::StyleWhen [−][src]
pub enum StyleWhen {
Never,
Always,
Tty,
}
Expand description
Configuration option controlling when output styling is used
Variants
Never style output
Always style output
Style output only when printing to a TTY
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for StyleWhen
impl UnwindSafe for StyleWhen
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.