noop.rs - source
Description: Source of the Rust file `library/std/src/../../backtrace/src/symbolize/noop.rs`.

#
std/backtrace/src/symbolize/
noop.rs

    1//! Empty symbolication strategy used to compile for platforms that have no
    2//! support.
    3
    4use super::{BytesOrWideString, ResolveWhat, SymbolName};
    5use core::ffi::c_void;
    6use core::marker;
    7
    8pub unsafe fn resolve(_addr: ResolveWhat<'_>, _cb: &mut dyn FnMut(&super::Symbol)) {}
    9
    10pub struct Symbol<'a> {
    11    _marker: marker::PhantomData<&'a i32>,
    12}
    13
    14impl Symbol<'_> {
    15    pub fn name(&self) -> Option<SymbolName<'_>> {
    16        None
    17    }
    18
    19    pub fn addr(&self) -> Option<*mut c_void> {
    20        None
    21    }
    22
    23    pub fn filename_raw(&self) -> Option<BytesOrWideString<'_>> {
    24        None
    25    }
    26
    27    #[cfg(feature = "std")]
    28    pub fn filename(&self) -> Option<&::std::path::Path> {
    29        None
    30    }
    31
    32    pub fn lineno(&self) -> Option<u32> {
    33        None
    34    }
    35
    36    pub fn colno(&self) -> Option<u32> {
    37        None
    38    }
    39}
    40
    41pub unsafe fn clear_symbol_cache() {}