pub enum ErrorKind {
Show 15 variants
InvalidUtf8,
UnterminatedString,
EmptyExpression,
MissingOpeningParenthesis,
UnbalancedOpeningParenthesis,
UnbalancedClosingParenthesis,
LeftoverGarbage,
UnexpectedToken,
IntegerOutOfRange,
ResourceLimit,
InvalidBuildValue,
InvalidPatch,
InvalidSelector,
InvalidSpan,
Io,
}Expand description
Stable error classification for programmatic diagnostics.
Variants§
InvalidUtf8
Input bytes were not valid UTF-8.
UnterminatedString
A quoted string did not terminate.
EmptyExpression
No expression was present.
MissingOpeningParenthesis
The first token was not an opening parenthesis.
UnbalancedOpeningParenthesis
An opening parenthesis did not have a matching close.
UnbalancedClosingParenthesis
A closing parenthesis did not have a matching open.
LeftoverGarbage
Tokens remained after the root expression.
UnexpectedToken
A token did not satisfy a KiCad dialect production.
IntegerOutOfRange
A numeric token exceeded the initial integer representation.
ResourceLimit
A configured parser resource limit was exceeded.
InvalidBuildValue
A value could not be emitted safely.
InvalidPatch
A source-preserving patch was invalid or overlapped another patch.
InvalidSelector
Selector depth or path constraints were inconsistent.
InvalidSpan
A form span did not belong to the supplied source.
Io
Native source reading or seeking failed.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.