Struct okane_core::repl::display::DisplayContext
source · 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 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