#[non_exhaustive]pub enum CompileReason {
#[non_exhaustive] ExpressionCompileError {
source: String,
cause: String,
position: Option<(usize, usize)>,
},
}Expand description
Why a valid document does not compile.
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.
#[non_exhaustive]ExpressionCompileError
The predicator crate refused an expression the chart writes: a
condition, a value or a <content> expression. A refused <assign>
or <data> value, namelist entry or <script> body is not
refused here: it compiles to a step that fails when it executes.
The reference also names the expression’s owner (a transition, a
node of executable content, a <donedata>, a <data>, a global
script or an <invoke>); this version does not, and the refusal’s
span locates the expression instead.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
Source§impl Clone for CompileReason
impl Clone for CompileReason
Source§impl Debug for CompileReason
impl Debug for CompileReason
impl Eq for CompileReason
Source§impl PartialEq for CompileReason
impl PartialEq for CompileReason
impl StructuralPartialEq for CompileReason
Auto Trait Implementations§
impl Forget for CompileReason
impl Freeze for CompileReason
impl Move for CompileReason
impl RefUnwindSafe for CompileReason
impl Send for CompileReason
impl Sync for CompileReason
impl Unpin for CompileReason
impl UnsafeUnpin for CompileReason
impl UnwindSafe for CompileReason
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