Struct rustc_ap_rustc_errors::registry::Registry [−][src]
pub struct Registry { /* fields omitted */ }
Implementations
pub fn try_find_description(
&self,
code: &str
) -> Result<Option<&'static str>, InvalidErrorCode>
pub fn try_find_description(
&self,
code: &str
) -> Result<Option<&'static str>, InvalidErrorCode>
Returns InvalidErrorCode
if the code requested does not exist in the
registry. Otherwise, returns an Option
where None
means the error
code is valid but has no extended information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Registry
impl UnwindSafe for Registry
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V