[][src]Struct errmapgen::ErrorMapping

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

Fields

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

Implementations

impl ErrorMapping[src]

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

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

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(
    &self,
    module: &ModuleId,
    output_code: u64
) -> Option<ErrorContext>
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,