Struct piston_meta::meta_rules::Not[][src]

pub struct Not {
    pub rule: Rule,
    pub debug_id: DebugId,
}

Stores information about not.

Fields

rule: Rule

The not rule.

debug_id: DebugId

A debug id to track down the rule generating an error.

Implementations

impl Not[src]

pub fn parse(
    &self,
    tokens: &mut Vec<Range<MetaData>>,
    state: &TokenizerState,
    read_token: &ReadToken<'_>,
    refs: &[Rule],
    indent_settings: &mut IndentSettings
) -> ParseResult<TokenizerState>
[src]

Parse not. Fails if sub rule succeeds.

Trait Implementations

impl Clone for Not[src]

impl Debug for Not[src]

impl PartialEq<Not> for Not[src]

impl StructuralPartialEq for Not[src]

Auto Trait Implementations

impl RefUnwindSafe for Not

impl Send for Not

impl Sync for Not

impl Unpin for Not

impl UnwindSafe for Not

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.