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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, T: Debug> Debug for CustomFormatter<'a, T>
impl<'a, T: Debug> Debug for CustomFormatter<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CustomFormatter<'a, T>
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§
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