Enum Atomicity

enum Atomicity

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

Implementations

impl Clone for Atomicity

fn clone(self: &Self) -> Atomicity

impl Copy for Atomicity

impl Debug for Atomicity

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for Atomicity

impl Freeze for Atomicity

impl PartialEq for Atomicity

fn eq(self: &Self, other: &Atomicity) -> bool

impl RefUnwindSafe for Atomicity

impl Send for Atomicity

impl StructuralPartialEq for Atomicity

impl Sync for Atomicity

impl Unpin for Atomicity

impl UnsafeUnpin for Atomicity

impl UnwindSafe for Atomicity

impl<T> Any for Atomicity

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Atomicity

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Atomicity

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Atomicity

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Atomicity

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Atomicity

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Atomicity

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Atomicity

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Atomicity

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>