pub struct DisplayContext {
pub precisions: HashMap<String, u8>,
}
Expand description
Context information to control the formatting of the transaction.
Fields§
§precisions: HashMap<String, u8>
Implementations§
Source§impl DisplayContext
impl DisplayContext
Sourcepub fn as_display<'a, T>(&'a self, value: &'a T) -> WithContext<'a, T>where
WithContext<'a, T>: Display,
pub fn as_display<'a, T>(&'a self, value: &'a T) -> WithContext<'a, T>where
WithContext<'a, T>: Display,
Returns given object reference wrapped with a context for fmt::Display
.
Trait Implementations§
Source§impl Default for DisplayContext
impl Default for DisplayContext
Source§fn default() -> DisplayContext
fn default() -> DisplayContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisplayContext
impl RefUnwindSafe for DisplayContext
impl Send for DisplayContext
impl Sync for DisplayContext
impl Unpin for DisplayContext
impl UnwindSafe for DisplayContext
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