pub enum CompatibilityError {
    IncompatibleElement {
        element: Element,
        version_mask: u32,
    },
    IncompatibleAttribute {
        element: Element,
        attribute: AttributeName,
        version_mask: u32,
    },
    IncompatibleAttributeValue {
        element: Element,
        attribute: AttributeName,
        version_mask: u32,
    },
}
Expand description

Possible kinds of compatibility errors that can be found by ArxmlFile::check_version_compatibility()

Variants

IncompatibleElement

Fields

element: Element
version_mask: u32

The element is not allowed in the target version

IncompatibleAttribute

Fields

element: Element
attribute: AttributeName
version_mask: u32

The attribute is not allowed in the target version

IncompatibleAttributeValue

Fields

element: Element
attribute: AttributeName
version_mask: u32

The attribute value is not allowed in the target version

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.