Struct rustc_errors::registry::Registry [−][src]
Fields
long_descriptions: FxHashMap<&'static str, Option<&'static str>>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 Registryimpl UnwindSafe for RegistryBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes