Lines Matching refs:Formatter
3 //! This module contains a [`Formatter`] that can be used to format log records
5 //! about the contents of this module and can use the `Formatter` like an ordinary
27 //! [`Formatter`]: struct.Formatter.html
78 /// `Formatter` implements the standard [`Write`] trait for writing log records.
84 /// An instance of a `Formatter` is passed to an `env_logger` format as `buf`:
97 pub struct Formatter {
102 impl Formatter {
104 Formatter {
123 impl Write for Formatter {
133 impl fmt::Debug for Formatter {
134 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
135 f.debug_struct("Formatter").finish()
139 pub(crate) type FormatFn = Box<dyn Fn(&mut Formatter, &Record) -> io::Result<()> + Sync + Send>;
220 buf: &'a mut Formatter,
433 let mut f = Formatter::new(&writer);
455 let mut f = Formatter::new(&writer);
477 let mut f = Formatter::new(&writer);
499 let mut f = Formatter::new(&writer);
521 let mut f = Formatter::new(&writer);
543 let mut f = Formatter::new(&writer);
565 let mut f = Formatter::new(&writer);
587 let mut f = Formatter::new(&writer);
612 let mut f = Formatter::new(&writer);
634 let mut f = Formatter::new(&writer);