/// Write a line to the trace file.
Write a line to the trace file.
Write a line to the trace file .
pub fn write(&mut self, trace_write: &TraceWrite<'_>) {
        let dump = format!("{:#?}", self);
        match self.file.as_mut() {
            Some(file) => {
                match write!(file, "{}", trace_write) {
                    Ok(_) => {}
                    Err(e) => panic!("Trace requested, but failed to write {:?}", e),
                }
            }
            None => {
                panic!("Trace requested, but init was never called; use the trace! macro \
                        instead: {:#?}",
                       dump);
            }
        }
    }
pub fn write ( & mut self , trace_write : & TraceWrite < ' _ > ) { let dump = format ! ( " " self ) ; match self . file . as_mut ( ) { Some ( file ) => { match write ! ( file " " trace_write ) { Ok ( _ ) => { } Err ( e ) => panic ! ( " " e ) , } } None => { panic ! ( " \
 " dump ) ; } } }
Write a line to the trace file.
Write a line to the trace file .
&mut self
trace_write
&TraceWrite<'_>