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 for HyperlinkConfig
impl PartialEq for HyperlinkConfig
impl Eq for HyperlinkConfig
impl StructuralPartialEq for HyperlinkConfig
Auto Trait Implementations§
impl Freeze for HyperlinkConfig
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
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
)