Lines Matching defs:fmt
33 use std::fmt::Display;
36 use std::{fmt, io, mem};
133 impl fmt::Debug for Formatter {
134 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
184 if let Some(fmt) = built.custom_format {
185 fmt
188 let fmt = DefaultFormat {
199 fmt.write(record)
348 fmt: &'a mut DefaultFormat<'b>,
358 self.fmt.buf,
360 self.fmt.suffix,
365 self.fmt.buf.write_all(chunk)?;
373 self.fmt.buf.flush()
380 fmt: self,
400 fn write_record(record: Record, fmt: DefaultFormat) -> String {
401 let buf = fmt.buf.buf.clone();
403 fmt.write(&record).expect("failed to write record");
409 fn write_target(target: &str, fmt: DefaultFormat) -> String {
419 fmt,
423 fn write(fmt: DefaultFormat) -> String {
424 write_target("", fmt)