Function swc::try_with_handler[][src]

pub fn try_with_handler<F, Ret>(cm: Lrc<SourceMap>, op: F) -> Result<Ret, Error> where
    F: FnOnce(&Handler) -> Result<Ret, Error>, 
Expand description

Try operation with a Handler and prints the errors as a String wrapped by Err.