#[non_exhaustive]pub enum WriteErrorKind {
UnsupportedVersion(Detected<IdsVersion>),
NoSpecifications,
NoIfcVersions,
EmptyApplicability,
ApplicabilityOrder {
found: &'static str,
},
AttributeNotAllowed {
facet: &'static str,
attribute: &'static str,
},
OccurrenceNotAllowed {
facet: &'static str,
occurrence: Occurrence,
},
EmptyRestriction,
InvalidValue {
found: String,
expected: &'static str,
},
InvalidCharacter(char),
Io {
kind: ErrorKind,
message: String,
},
}Expand description
The kinds of WriteError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedVersion(Detected<IdsVersion>)
The model is not IDS 1.0, or its version is a conflict.
NoSpecifications
The schema requires at least one specification.
NoIfcVersions
A specification lists no IFC release; @ifcVersion needs one.
EmptyApplicability
An applicability without facets.
ApplicabilityOrder
Applicability facets out of the order the schema requires: at most one
entity, then partOf, classification, attribute, property,
material.
AttributeNotAllowed
A requirement attribute the schema does not allow on this facet.
OccurrenceNotAllowed
An occurrence that this facet cannot state: an entity requirement is
always required, a partOf requirement cannot be optional.
EmptyRestriction
An <xs:restriction> without facets.
InvalidValue
A value outside the lexical space the schema allows.
InvalidCharacter(char)
A character that XML 1.0 cannot represent, even escaped.
Io
Writing to the output failed.
Trait Implementations§
Source§impl Clone for WriteErrorKind
impl Clone for WriteErrorKind
Source§impl Debug for WriteErrorKind
impl Debug for WriteErrorKind
Source§impl Display for WriteErrorKind
impl Display for WriteErrorKind
impl Eq for WriteErrorKind
Source§impl PartialEq for WriteErrorKind
impl PartialEq for WriteErrorKind
impl StructuralPartialEq for WriteErrorKind
Auto Trait Implementations§
impl Freeze for WriteErrorKind
impl RefUnwindSafe for WriteErrorKind
impl Send for WriteErrorKind
impl Sync for WriteErrorKind
impl Unpin for WriteErrorKind
impl UnsafeUnpin for WriteErrorKind
impl UnwindSafe for WriteErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more