Struct custom_format::runtime::CustomFormatter
source · pub struct CustomFormatter<'a, T> { /* private fields */ }
Available on crate feature
runtime
only.Expand description
Wrapper for custom formatting via its Display
trait
Implementations§
source§impl<'a, T> CustomFormatter<'a, T>
impl<'a, T> CustomFormatter<'a, T>
sourcepub fn new(spec: &'static str, value: &'a T) -> Self
pub fn new(spec: &'static str, value: &'a T) -> Self
Construct a new CustomFormatter
value
Trait Implementations§
source§impl<'a, T: Clone> Clone for CustomFormatter<'a, T>
impl<'a, T: Clone> Clone for CustomFormatter<'a, T>
source§fn clone(&self) -> CustomFormatter<'a, T>
fn clone(&self) -> CustomFormatter<'a, T>
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 more