[][src]Struct gluon_parser::infix::Reparser

pub struct Reparser<'s, Id: 's> { /* fields omitted */ }

Methods

impl<'s, Id> Reparser<'s, Id>[src]

pub fn new(
    operators: OpTable<Id>,
    symbols: &'s dyn IdentEnv<Ident = Id>
) -> Reparser<'s, Id>
[src]

pub fn reparse(
    &mut self,
    expr: &mut SpannedExpr<Id>
) -> Result<(), Errors<Spanned<Error, BytePos>>> where
    Id: Eq + Hash + AsRef<str> + Debug
[src]

Trait Implementations

impl<'a, 's, Id> MutVisitor<'a> for Reparser<'s, Id> where
    Id: Eq + Hash + AsRef<str> + Debug + 'a, 
[src]

type Ident = Id

fn visit_pattern(&mut self, e: &'a mut Spanned<Pattern<Self::Ident>, ByteIndex>)[src]

fn visit_spanned_typed_ident(
    &mut self,
    id: &'a mut Spanned<TypedIdent<Self::Ident, ArcType<Self::Ident>>, ByteIndex>
)
[src]

fn visit_ident(
    &mut self,
    id: &'a mut TypedIdent<Self::Ident, ArcType<Self::Ident>>
)
[src]

fn visit_alias(
    &mut self,
    alias: &'a mut Spanned<AliasData<Self::Ident, AstType<Self::Ident>>, ByteIndex>
)
[src]

fn visit_spanned_ident(&mut self, &'a mut Spanned<Self::Ident, ByteIndex>)[src]

fn visit_typ(&mut self, &'a mut ArcType<Self::Ident>)[src]

fn visit_ast_type(
    &mut self,
    s: &'a mut Spanned<Type<Self::Ident, AstType<Self::Ident>>, ByteIndex>
)
[src]

Auto Trait Implementations

impl<'s, Id> !Sync for Reparser<'s, Id>

impl<'s, Id> Unpin for Reparser<'s, Id> where
    Id: Unpin

impl<'s, Id> !Send for Reparser<'s, Id>

impl<'s, Id> !UnwindSafe for Reparser<'s, Id>

impl<'s, Id> !RefUnwindSafe for Reparser<'s, Id>

Blanket Implementations

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

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

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.

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

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

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