[][src]Struct errmapgen::ErrorMapping

pub struct ErrorMapping {
    pub error_categories: BTreeMap<u64, ErrorDescription>,
    pub module_error_maps: BTreeMap<ModuleId, BTreeMap<u64, ErrorDescription>>,


error_categories: BTreeMap<u64, ErrorDescription>

The set of error categories and their descriptions

module_error_maps: BTreeMap<ModuleId, BTreeMap<u64, ErrorDescription>>

The set of modules, and the module-specific errors


impl ErrorMapping[src]

pub fn add_error_category(
    &mut self,
    category_id: u64,
    description: ErrorDescription
) -> Result<()>

pub fn add_module_error(
    &mut self,
    module_id: ModuleId,
    abort_code: u64,
    description: ErrorDescription
) -> Result<()>

pub fn from_file<P: AsRef<Path>>(path: P) -> Self[src]

pub fn to_file<P: AsRef<Path>>(&self, path: P)[src]

pub fn get_explanation(
    module: &ModuleId,
    output_code: u64
) -> Option<ErrorContext>

Trait Implementations

impl Clone for ErrorMapping[src]

impl Debug for ErrorMapping[src]

impl Default for ErrorMapping[src]

impl<'de> Deserialize<'de> for ErrorMapping[src]

impl Serialize for ErrorMapping[src]

Auto Trait Implementations

impl RefUnwindSafe for ErrorMapping

impl Send for ErrorMapping

impl Sync for ErrorMapping

impl Unpin for ErrorMapping

impl UnwindSafe for ErrorMapping

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,