1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
13 use sys_common::backtrace::Frame;
15 pub struct BacktraceContext;
17 pub fn unwind_backtrace(_frames: &mut [Frame])
18 -> io::Result<(usize, BacktraceContext)>
23 pub fn resolve_symname<F>(_frame: Frame,
25 _: &BacktraceContext) -> io::Result<()>
26 where F: FnOnce(Option<&str>) -> io::Result<()>
31 pub fn foreach_symbol_fileline<F>(_: Frame,
33 _: &BacktraceContext) -> io::Result<bool>
34 where F: FnMut(&[u8], u32) -> io::Result<()>