Trait ra_ap_hir_expand::eager::ErrorSink[][src]

pub trait ErrorSink {
    fn emit(&mut self, err: ExpandError);

    fn option<T>(
        &mut self,
        opt: Option<T>,
        error: impl FnOnce() -> ExpandError
    ) -> Result<T, ErrorEmitted> { ... }
fn option_with<T>(
        &mut self,
        opt: impl FnOnce() -> Option<T>,
        error: impl FnOnce() -> ExpandError
    ) -> Result<T, ErrorEmitted> { ... }
fn result<T>(
        &mut self,
        res: Result<T, ExpandError>
    ) -> Result<T, ErrorEmitted> { ... }
fn expand_result_option<T>(
        &mut self,
        res: ExpandResult<Option<T>>
    ) -> Result<T, ErrorEmitted> { ... } }

Required methods

Provided methods

Implementations on Foreign Types

Implementors