pub struct ErrmapGen<'env> { /* private fields */ }
Implementations
sourceimpl<'env> ErrmapGen<'env>
impl<'env> ErrmapGen<'env>
pub fn new(env: &'env GlobalEnv, options: &'env ErrmapOptions) -> Self
pub fn gen(&mut self) -> Result<ErrorMapping>
pub fn gen_for_module(&mut self, module: &ModuleEnv<'_>) -> Result<ErrorMapping>
pub fn build_error_map_for_module(
&mut self,
module_id: &ModuleId,
module: &ModuleEnv<'_>
) -> Result<()>
Auto Trait Implementations
impl<'env> !RefUnwindSafe for ErrmapGen<'env>
impl<'env> !Send for ErrmapGen<'env>
impl<'env> !Sync for ErrmapGen<'env>
impl<'env> Unpin for ErrmapGen<'env>
impl<'env> !UnwindSafe for ErrmapGen<'env>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more