Struct grep_printer::HyperlinkConfig
source · pub struct HyperlinkConfig(/* private fields */);
Expand description
Hyperlink configuration.
This configuration specifies both the hyperlink format and an environment for interpolating a subset of variables. The specific subset includes variables that are intended to be invariant throughout the lifetime of a process, such as a machine’s hostname.
A hyperlink configuration can be provided to printer builders such as
StandardBuilder::hyperlink
.
Implementations§
source§impl HyperlinkConfig
impl HyperlinkConfig
sourcepub fn new(
env: HyperlinkEnvironment,
format: HyperlinkFormat
) -> HyperlinkConfig
pub fn new( env: HyperlinkEnvironment, format: HyperlinkFormat ) -> HyperlinkConfig
Create a new configuration from an environment and a format.
Trait Implementations§
source§impl Clone for HyperlinkConfig
impl Clone for HyperlinkConfig
source§fn clone(&self) -> HyperlinkConfig
fn clone(&self) -> HyperlinkConfig
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 HyperlinkConfig
impl Debug for HyperlinkConfig
source§impl Default for HyperlinkConfig
impl Default for HyperlinkConfig
source§fn default() -> HyperlinkConfig
fn default() -> HyperlinkConfig
Returns the “default value” for a type. Read more
source§impl PartialEq<HyperlinkConfig> for HyperlinkConfig
impl PartialEq<HyperlinkConfig> for HyperlinkConfig
source§fn eq(&self, other: &HyperlinkConfig) -> bool
fn eq(&self, other: &HyperlinkConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HyperlinkConfig
impl StructuralEq for HyperlinkConfig
impl StructuralPartialEq for HyperlinkConfig
Auto Trait Implementations§
impl RefUnwindSafe for HyperlinkConfig
impl Send for HyperlinkConfig
impl Sync for HyperlinkConfig
impl Unpin for HyperlinkConfig
impl UnwindSafe for HyperlinkConfig
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