pub enum TransitionResult {
Success {
doctree: DocTree,
push_or_pop: PushOrPop,
line_advance: LineAdvance,
},
Failure {
message: String,
doctree: DocTree,
},
}Expand description
An enumeration of the different results, including errors, that a transition function might have.
Variants§
Success
This is returned if nothing goes wrong with a transition method. It includes the modified document tree, plus information about how to manipulate the parser stack, whether the parser should advance its line cursor.
Failure
A general failure result. This will be returned if a clear error, such as a completetely invalid enumerator was encountered in a transition method functions. Contains an error message and the doctree in its current state.
Auto Trait Implementations§
impl Freeze for TransitionResult
impl RefUnwindSafe for TransitionResult
impl Send for TransitionResult
impl Sync for TransitionResult
impl Unpin for TransitionResult
impl UnwindSafe for TransitionResult
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