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 for ColorSpecs
impl PartialEq for ColorSpecs
impl Eq for ColorSpecs
impl StructuralPartialEq for ColorSpecs
Auto Trait Implementations§
impl Freeze for ColorSpecs
impl RefUnwindSafe for ColorSpecs
impl Send for ColorSpecs
impl Sync for ColorSpecs
impl Unpin for ColorSpecs
impl UnwindSafe for ColorSpecs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)