pub(crate) enum ItemState {
Unparsed,
Conflict(usize),
Parsed,
}Expand description
Shows which branch of [ParseOrElse] parsed the argument
Variants§
Unparsed
Value is yet to be parsed
Conflict(usize)
Both branches succeeded, first parser was taken in favor of the second one
Parsed
Value was parsed
Implementations§
Trait Implementations§
impl Copy for ItemState
impl Eq for ItemState
impl StructuralPartialEq for ItemState
Auto Trait Implementations§
impl Freeze for ItemState
impl RefUnwindSafe for ItemState
impl Send for ItemState
impl Sync for ItemState
impl Unpin for ItemState
impl UnwindSafe for ItemState
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