Sha256: 21943fa1f17169ecb1dfff47fc3ee4de7c5669d4abb3fb6f11f6e39845f14a24

Contents?: true

Size: 558 Bytes

Versions: 8

Compression:

Stored size: 558 Bytes

Contents

//! Empty implementation of unwinding used when no other implementation is
//! appropriate.

use core::ffi::c_void;
use core::ptr::null_mut;

#[inline(always)]
pub fn trace(_cb: &mut dyn FnMut(&super::Frame) -> bool) {}

#[derive(Clone)]
pub struct Frame;

impl Frame {
    pub fn ip(&self) -> *mut c_void {
        null_mut()
    }

    pub fn sp(&self) -> *mut c_void {
        null_mut()
    }

    pub fn symbol_address(&self) -> *mut c_void {
        null_mut()
    }

    pub fn module_base_address(&self) -> Option<*mut c_void> {
        None
    }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/backtrace-0.3.74/src/backtrace/noop.rs
wasmtime-28.0.0 ./ext/cargo-vendor/backtrace-0.3.74/src/backtrace/noop.rs
wasmtime-27.0.0 ./ext/cargo-vendor/backtrace-0.3.74/src/backtrace/noop.rs
wasmtime-26.0.0 ./ext/cargo-vendor/backtrace-0.3.74/src/backtrace/noop.rs
wasmtime-25.0.2 ./ext/cargo-vendor/backtrace-0.3.73/src/backtrace/noop.rs
wasmtime-25.0.1 ./ext/cargo-vendor/backtrace-0.3.73/src/backtrace/noop.rs
wasmtime-25.0.0 ./ext/cargo-vendor/backtrace-0.3.73/src/backtrace/noop.rs
wasmtime-24.0.0 ./ext/cargo-vendor/backtrace-0.3.73/src/backtrace/noop.rs