pub struct PatternEncoder { /* private fields */ }
Expand description
An Encode
r configured via a format string.
Implementations
sourceimpl 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
sourceimpl Debug for PatternEncoder
impl Debug for PatternEncoder
sourceimpl Default for PatternEncoder
impl Default for PatternEncoder
Returns a PatternEncoder
using the default pattern of {d} {l} {t} - {m}{n}
.
sourcefn default() -> PatternEncoder
fn default() -> PatternEncoder
Returns the “default value” for a type. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more