pub struct DefaultTypes;Expand description
The types emitted by the parser
Trait Implementations§
Source§impl AstTypes for DefaultTypes
impl AstTypes for DefaultTypes
Source§type Annotation = Span
type Annotation = Span
Source§type MacroId = Interned<'static, str>
type MacroId = Interned<'static, str>
A (possibly interned) symbol or index which implements
AsRef<str>Source§impl Clone for DefaultTypes
impl Clone for DefaultTypes
Source§fn clone(&self) -> DefaultTypes
fn clone(&self) -> DefaultTypes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultTypes
impl Debug for DefaultTypes
Source§impl Display for DefaultTypes
impl Display for DefaultTypes
Source§impl Fold<DefaultTypes> for Bubbler
impl Fold<DefaultTypes> for Bubbler
type Error = Infallible
Source§fn fold_annotation(
&mut self,
anno: <DefaultTypes as AstTypes>::Annotation,
) -> Result<<DefaultTypes as AstTypes>::Annotation, Self::Error>
fn fold_annotation( &mut self, anno: <DefaultTypes as AstTypes>::Annotation, ) -> Result<<DefaultTypes as AstTypes>::Annotation, Self::Error>
Consumes an Annotation in A, possibly transforms it, and produces a replacement Annotation
in B
Source§fn fold_macro_id(
&mut self,
name: <DefaultTypes as AstTypes>::MacroId,
) -> Result<<DefaultTypes as AstTypes>::MacroId, Self::Error>
fn fold_macro_id( &mut self, name: <DefaultTypes as AstTypes>::MacroId, ) -> Result<<DefaultTypes as AstTypes>::MacroId, Self::Error>
Consumes a
MacroId in A, possibly transforms it, and produces a replacement MacroId in BSource§fn fold_symbol(
&mut self,
name: <DefaultTypes as AstTypes>::Symbol,
) -> Result<<DefaultTypes as AstTypes>::Symbol, Self::Error>
fn fold_symbol( &mut self, name: <DefaultTypes as AstTypes>::Symbol, ) -> Result<<DefaultTypes as AstTypes>::Symbol, Self::Error>
Consumes a
Symbol in A, possibly transforms it, and produces a replacement Symbol in BSource§fn fold_path(
&mut self,
path: <DefaultTypes as AstTypes>::Path,
) -> Result<<DefaultTypes as AstTypes>::Path, Self::Error>
fn fold_path( &mut self, path: <DefaultTypes as AstTypes>::Path, ) -> Result<<DefaultTypes as AstTypes>::Path, Self::Error>
Consumes a
Path in A, possibly transforms it, and produces a replacement Path in BSource§fn fold_literal(
&mut self,
lit: <DefaultTypes as AstTypes>::Literal,
) -> Result<<DefaultTypes as AstTypes>::Literal, Self::Error>
fn fold_literal( &mut self, lit: <DefaultTypes as AstTypes>::Literal, ) -> Result<<DefaultTypes as AstTypes>::Literal, Self::Error>
Consumes a
Literal in A, possibly transforms it, and produces a replacement Literal in BSource§fn fold_at_pat(
&mut self,
pat: At<Pat<DefaultTypes>, DefaultTypes>,
) -> Result<At<Pat<DefaultTypes>, DefaultTypes>, Self::Error>
fn fold_at_pat( &mut self, pat: At<Pat<DefaultTypes>, DefaultTypes>, ) -> Result<At<Pat<DefaultTypes>, DefaultTypes>, Self::Error>
Folds an annotated pattern, so the pattern and annotation can be seen at once.
Source§fn fold_bind(
&mut self,
bind: Bind<DefaultTypes>,
) -> Result<Bind<DefaultTypes>, Self::Error>
fn fold_bind( &mut self, bind: Bind<DefaultTypes>, ) -> Result<Bind<DefaultTypes>, Self::Error>
Source§fn fold_at_expr(
&mut self,
expr: At<Expr<From>, From>,
) -> Result<At<Expr<To>, To>, Self::Error>
fn fold_at_expr( &mut self, expr: At<Expr<From>, From>, ) -> Result<At<Expr<To>, To>, Self::Error>
Folds an annotated expression, so the expression and annotation can be seen at once.
Source§impl Hash for DefaultTypes
impl Hash for DefaultTypes
Source§impl PartialEq for DefaultTypes
impl PartialEq for DefaultTypes
impl Copy for DefaultTypes
impl Eq for DefaultTypes
impl StructuralPartialEq for DefaultTypes
Auto Trait Implementations§
impl Freeze for DefaultTypes
impl RefUnwindSafe for DefaultTypes
impl Send for DefaultTypes
impl Sync for DefaultTypes
impl Unpin for DefaultTypes
impl UnsafeUnpin for DefaultTypes
impl UnwindSafe for DefaultTypes
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