pub enum ParserState {
Start,
AfterVersion,
AfterId,
AfterPubkey,
AfterSig,
AfterCreatedAt,
AfterKind,
AfterContent,
ReadingTags,
Done,
Errored,
}Expand description
Internal parser state machine.
Parsing transitions linearly (Start → AfterVersion → … → Done).
Once in ParserState::Errored or ParserState::Done, the parser ha
Variants§
Start
AfterVersion
AfterId
AfterPubkey
AfterSig
AfterCreatedAt
AfterKind
AfterContent
ReadingTags
Done
Errored
Trait Implementations§
Source§impl Clone for ParserState
impl Clone for ParserState
Source§fn clone(&self) -> ParserState
fn clone(&self) -> ParserState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserState
impl Debug for ParserState
Source§impl PartialEq for ParserState
impl PartialEq for ParserState
impl Copy for ParserState
impl Eq for ParserState
impl StructuralPartialEq for ParserState
Auto Trait Implementations§
impl Freeze for ParserState
impl RefUnwindSafe for ParserState
impl Send for ParserState
impl Sync for ParserState
impl Unpin for ParserState
impl UnwindSafe for ParserState
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