pub enum FormattingFunction {
Display,
Debug,
}Expand description
Enum for deciding which function to prefer when a context/attachment is formatted as part of a report.
Whether this is respected or not is up to the code that does the formatting for reports.
Variants§
Display
The context prefers to be rendered inline using the ContextHandler::display/AttachmentHandler::display methods.
Debug
The context prefers to be rendered inline using the ContextHandler::debug/AttachmentHandler::debug methods
Trait Implementations§
Source§impl Clone for FormattingFunction
impl Clone for FormattingFunction
Source§fn clone(&self) -> FormattingFunction
fn clone(&self) -> FormattingFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormattingFunction
impl Debug for FormattingFunction
Source§impl Default for FormattingFunction
impl Default for FormattingFunction
Source§fn default() -> FormattingFunction
fn default() -> FormattingFunction
Returns the “default value” for a type. Read more
Source§impl Hash for FormattingFunction
impl Hash for FormattingFunction
Source§impl PartialEq for FormattingFunction
impl PartialEq for FormattingFunction
impl Copy for FormattingFunction
impl Eq for FormattingFunction
impl StructuralPartialEq for FormattingFunction
Auto Trait Implementations§
impl Freeze for FormattingFunction
impl RefUnwindSafe for FormattingFunction
impl Send for FormattingFunction
impl Sync for FormattingFunction
impl Unpin for FormattingFunction
impl UnwindSafe for FormattingFunction
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