pub struct Formatter<T> {
pub key: SmartString<LazyCompact>,
pub cb: FormatterCallback<T>,
}
Expand description
A container around the callback that also contains the name of the key.
Fields§
§key: SmartString<LazyCompact>
§cb: FormatterCallback<T>
Trait Implementations§
impl<T> Eq for Formatter<T>
Auto Trait Implementations§
impl<T> Freeze for Formatter<T>
impl<T> !RefUnwindSafe for Formatter<T>
impl<T> Send for Formatter<T>
impl<T> Sync for Formatter<T>
impl<T> Unpin for Formatter<T>
impl<T> !UnwindSafe for Formatter<T>
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