pub fn output(w: &mut Write, idx: isize, addr: *mut libc::c_void,
              s: Option<&[u8]>) -> io::Result<()> {
    write!(w, "  {:2}: {:2$?} - ", idx, addr, HEX_WIDTH)?;
    match s.and_then(|s| str::from_utf8(s).ok()) {
        Some(string) => demangle(w, string)?,
        None => write!(w, "<unknown>")?,
    }
    w.write_all(&['\n' as u8])
}
// These output functions should now be used everywhere to ensure consistency.
These output functions should now be used everywhere to ensure consistency.
These output functions should now be used everywhere to ensure consistency .
pub fn output(w: &mut Write, idx: isize, addr: *mut libc::c_void,
              s: Option<&[u8]>) -> io::Result<()> {
    write!(w, "  {:2}: {:2$?} - ", idx, addr, HEX_WIDTH)?;
    match s.and_then(|s| str::from_utf8(s).ok()) {
        Some(string) => demangle(w, string)?,
        None => write!(w, "<unknown>")?,
    }
    w.write_all(&['\n' as u8])
}
pub fn output ( w : & mut Write , idx : isize , addr : * mut libc :: c_void , s : Option < & [ u8 ] > ) -> io :: Result < ( ) > { write ! ( w " " idx addr HEX_WIDTH ) ? ; match s . and_then ( | s | str :: from_utf8 ( s ) . ok ( ) ) { Some ( string ) => demangle ( w , string ) ? , None => write ! ( w " " ) ? , } w . write_all ( & [ '\n' as u8 ] ) }
These output functions should now be used everywhere to ensure consistency.
These output functions should now be used everywhere to ensure consistency .
w
&mut Write
idx
isize
addr
*mut libc::c_void
s
Option<&[u8]>
w
&mut Write
idx
isize
addr
*mut libc::c_void
s
Option<&[u8]>