pub enum ParseErrorKind {
Show 24 variants
UnexpectedChar(char),
UnexpectedEof,
Expected(String),
InvalidDate(String),
InvalidNumber(String),
InvalidAccount(String),
InvalidCurrency(String),
UnclosedString,
InvalidEscape(char),
MissingField(String),
IndentationError,
SyntaxError(String),
MissingNewline,
MissingAccount,
InvalidDateValue(String),
MissingAmount,
MissingCurrency,
InvalidAccountFormat(String),
MissingDirective,
InvalidPoptag(String),
UnclosedPushtag(String),
InvalidPopmeta(String),
UnclosedPushmeta(String),
DeprecatedPipeSymbol,
}Expand description
Kinds of parse errors.
Variants§
UnexpectedChar(char)
Unexpected character in input.
UnexpectedEof
Unexpected end of file.
Expected(String)
Expected a specific token.
InvalidDate(String)
Invalid date format.
InvalidNumber(String)
Invalid number format.
InvalidAccount(String)
Invalid account name.
InvalidCurrency(String)
Invalid currency code.
UnclosedString
Unclosed string literal.
InvalidEscape(char)
Invalid escape sequence in string.
MissingField(String)
Missing required field.
IndentationError
Indentation error.
SyntaxError(String)
Generic syntax error.
MissingNewline
Missing final newline.
MissingAccount
Missing account name (e.g., after ‘open’ keyword).
InvalidDateValue(String)
Invalid date value (e.g., month 13, day 32).
MissingAmount
Missing amount in posting.
MissingCurrency
Missing currency after number.
InvalidAccountFormat(String)
Invalid account format (e.g., missing colon).
MissingDirective
Missing directive after date.
InvalidPoptag(String)
Poptag for a tag that was never pushed.
UnclosedPushtag(String)
Pushtag that was never popped (unclosed).
InvalidPopmeta(String)
Popmeta for a key that was never pushed.
UnclosedPushmeta(String)
Pushmeta that was never popped (unclosed).
DeprecatedPipeSymbol
Deprecated pipe symbol in transaction.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.