addr2line::lazy

Type Alias LazyResult

Source
pub(crate) type LazyResult<T> = LazyCell<Result<T, Error>>;

Aliased Type§

struct LazyResult<T> {
    contents: UnsafeCell<Option<Result<T, Error>>>,
}

Fields§

§contents: UnsafeCell<Option<Result<T, Error>>>

Implementations

Source§

impl<T> LazyCell<T>

Source

pub(crate) fn new() -> LazyCell<T>

Source

pub(crate) fn borrow(&self) -> Option<&T>

Source

pub(crate) fn borrow_with(&self, closure: impl FnOnce() -> T) -> &T