.
//
//!
//! # Formatter
//!
use ::fmt;
use super::*;
///
/// Provides wrappers for holding each type of formatter.
///
#[derive(,)]
pub enum Formatter {
///
/// ISO 8601 / RFC 3339 date & time format.
///
(),
///
/// Simple format.
///
(),
///
/// Unix Timestamp format.
///
(),
///
/// Custom format.
///
/// Used to hold user provided formatter.
///
(<>),
}
impl Formatter {
///
/// Format the text of the `log_entry`, in accordance with the formatting
/// for this [formatter](enum.Formatter.html).
///
/// ## Parameters
/// - `log_entry` - The log entry to be formatted.
///
pub fn format(&selflog_entry: &) -> {
match self {
::() =>format(),
::() =>format(),
::() =>format(),
::() =>format(),
}
}
#[allow()]
pub(crate) fn width(&self) -> usize {
15
}
}
impl for Formatter {
fn default() -> Self {
::()create(None)
}
}
impl ::for Formatter {
fn fmt(&selff: &mut ::<_>) -> :: {
match self {
::() =>fmt(),
::() =>fmt(),
::() =>fmt(),
::() =>fmt(),
}
}
}