Lines Matching refs:Formatter
242 //! These closures take a [`Formatter`] and `log::Record` as arguments:
298 use self::fmt::{FormatFn, Formatter};
556 /// log record and output it to the given [`Formatter`].
559 /// `Formatter` so that implementations can use the [`std::fmt`] macros
576 /// [`Formatter`]: fmt/struct.Formatter.html
581 F: Fn(&mut Formatter, &Record) -> io::Result<()> + Sync + Send,
919 static FORMATTER: RefCell<Option<Formatter>> = RefCell::new(None);
922 let print = |formatter: &mut Formatter, record: &Record| {
940 *formatter = Formatter::new(&self.writer);
947 let mut formatter = Formatter::new(&self.writer);
955 print(&mut Formatter::new(&self.writer), record);
964 // Formatter on the stack for this call.
965 print(&mut Formatter::new(&self.writer), record);
1110 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1118 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {