Struct custom_format::compile_time::CustomFormatter
source · pub struct CustomFormatter<'a, T, const SPEC: u128> { /* private fields */ }
Available on crate feature
compile-time
only.Expand description
Wrapper for custom formatting via its Display
trait.
The format specifier is a const-generic parameter and is part of the type.
Implementations§
source§impl<'a, T, const SPEC: u128> CustomFormatter<'a, T, SPEC>
impl<'a, T, const SPEC: u128> CustomFormatter<'a, T, SPEC>
sourcepub fn new(value: &'a T) -> Self
pub fn new(value: &'a T) -> Self
Construct a new CustomFormatter
value
Trait Implementations§
source§impl<'a, T: Clone, const SPEC: u128> Clone for CustomFormatter<'a, T, SPEC>
impl<'a, T: Clone, const SPEC: u128> Clone for CustomFormatter<'a, T, SPEC>
source§fn clone(&self) -> CustomFormatter<'a, T, SPEC>
fn clone(&self) -> CustomFormatter<'a, T, SPEC>
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