Struct grep_printer::ColorSpecs
source · pub struct ColorSpecs { /* private fields */ }
Expand description
A merged set of color specifications.
This set of color specifications represents the various color types that
are supported by the printers in this crate. A set of color specifications
can be created from a sequence of
UserColorSpec
s.
Implementations§
source§impl ColorSpecs
impl ColorSpecs
sourcepub fn new(specs: &[UserColorSpec]) -> ColorSpecs
pub fn new(specs: &[UserColorSpec]) -> ColorSpecs
Create color specifications from a list of user supplied specifications.
sourcepub fn default_with_color() -> ColorSpecs
pub fn default_with_color() -> ColorSpecs
Create a default set of specifications that have color.
This is distinct from ColorSpecs
’s Default
implementation in that
this provides a set of default color choices, where as the Default
implementation provides no color choices.
Trait Implementations§
source§impl Clone for ColorSpecs
impl Clone for ColorSpecs
source§fn clone(&self) -> ColorSpecs
fn clone(&self) -> ColorSpecs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorSpecs
impl Debug for ColorSpecs
source§impl Default for ColorSpecs
impl Default for ColorSpecs
source§fn default() -> ColorSpecs
fn default() -> ColorSpecs
Returns the “default value” for a type. Read more
source§impl PartialEq<ColorSpecs> for ColorSpecs
impl PartialEq<ColorSpecs> for ColorSpecs
source§fn eq(&self, other: &ColorSpecs) -> bool
fn eq(&self, other: &ColorSpecs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.