unsafeimpl Send for MaybeResolved {} unsafeimpl Sync for MaybeResolved {}
pubuseself::backtrace::Backtrace;
impl InternalBacktrace { /// Returns a backtrace of the current call stack if `RUST_BACKTRACE` /// is set to anything but ``0``, and `None` otherwise. This is used /// in the generated error implementations. #[doc(hidden)] pubfn new() -> InternalBacktrace { static ENABLED: AtomicUsize = AtomicUsize::new(0);
match ENABLED.load(Ordering::SeqCst) { 0 => { let enabled = match env::var_os("RUST_BACKTRACE") {
Some(ref val) if val != "0" => true,
_ => false,
};
ENABLED.store(enabled as usize + 1, Ordering::SeqCst); if !enabled { return InternalBacktrace { backtrace: None };
}
} 1 => return InternalBacktrace { backtrace: None },
_ => {}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.