Struct log4rs::encode::pattern::PatternEncoder
source · pub struct PatternEncoder { /* private fields */ }
Expand description
An Encode
r configured via a format string.
Implementations§
source§impl PatternEncoder
impl PatternEncoder
sourcepub fn new(pattern: &str) -> PatternEncoder
pub fn new(pattern: &str) -> PatternEncoder
Creates a PatternEncoder
from a pattern string.
The pattern string syntax is documented in the pattern
module.
Trait Implementations§
source§impl Clone for PatternEncoder
impl Clone for PatternEncoder
source§fn clone(&self) -> PatternEncoder
fn clone(&self) -> PatternEncoder
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 PatternEncoder
impl Debug for PatternEncoder
source§impl Default for PatternEncoder
impl Default for PatternEncoder
Returns a PatternEncoder
using the default pattern of {d} {l} {t} - {m}{n}
.
source§fn default() -> PatternEncoder
fn default() -> PatternEncoder
Returns the “default value” for a type. Read more
source§impl Encode for PatternEncoder
impl Encode for PatternEncoder
source§impl Hash for PatternEncoder
impl Hash for PatternEncoder
source§impl PartialEq for PatternEncoder
impl PartialEq for PatternEncoder
source§fn eq(&self, other: &PatternEncoder) -> bool
fn eq(&self, other: &PatternEncoder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PatternEncoder
impl StructuralPartialEq for PatternEncoder
Auto Trait Implementations§
impl RefUnwindSafe for PatternEncoder
impl Send for PatternEncoder
impl Sync for PatternEncoder
impl Unpin for PatternEncoder
impl UnwindSafe for PatternEncoder
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.