Skip to main content

FoldableExpression

Trait FoldableExpression 

Source
pub trait FoldableExpression<'i>: Sized {
    // Required method
    fn fold<F>(self, folder: &mut F, span: Span<'i>) -> Result<Self, F::Error>
       where F: ExpressionFolder<'i, Self> + ?Sized;
}
Expand description

Expression item that can be transformed recursively by using folder: F.

Required Methods§

Source

fn fold<F>(self, folder: &mut F, span: Span<'i>) -> Result<Self, F::Error>
where F: ExpressionFolder<'i, Self> + ?Sized,

Transforms self by applying the folder to inner items.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§