Struct custom_format::runtime::CustomFormatter
source · [−]pub struct CustomFormatter<'a, T> { /* private fields */ }
Expand description
Wrapper for custom formatting via its Display
trait
Implementations
sourceimpl<'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
sourceimpl<'a, T: Clone> Clone for CustomFormatter<'a, T>
impl<'a, T: Clone> Clone for CustomFormatter<'a, T>
sourcefn clone(&self) -> CustomFormatter<'a, T>
fn clone(&self) -> CustomFormatter<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T: Debug> Debug for CustomFormatter<'a, T>
impl<'a, T: Debug> Debug for CustomFormatter<'a, T>
sourceimpl<T: CustomFormat> Display for CustomFormatter<'_, T>
impl<T: CustomFormat> Display for CustomFormatter<'_, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for CustomFormatter<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for CustomFormatter<'a, T> where
T: Sync,
impl<'a, T> Sync for CustomFormatter<'a, T> where
T: Sync,
impl<'a, T> Unpin for CustomFormatter<'a, T>
impl<'a, T> UnwindSafe for CustomFormatter<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more