pub enum Atomicity {
Atomic,
CompoundAtomic,
NonAtomic,
}
Expand description
The current atomicity of a ParserState
.
Variants§
Atomic
prevents implicit whitespace: inside an atomic rule, the tilde ~ means “immediately followed by”, and repetition operators (asterisk * and plus sign +) have no implicit separation. In addition, all other rules called from an atomic rule are also treated as atomic. (interior matching rules are silent)
CompoundAtomic
The same as atomic, but inner tokens are produced as normal.
NonAtomic
implicit whitespace is enabled
Trait Implementations§
impl Copy for Atomicity
impl Eq for Atomicity
impl StructuralPartialEq for Atomicity
Auto Trait Implementations§
impl Freeze for Atomicity
impl RefUnwindSafe for Atomicity
impl Send for Atomicity
impl Sync for Atomicity
impl Unpin for Atomicity
impl UnwindSafe for Atomicity
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