Trait rustpython_ast::fold::Foldable
source · pub trait Foldable<T, U> {
type Mapped;
// Required method
fn fold<F: Fold<T, TargetU = U> + ?Sized>(
self,
folder: &mut F,
) -> Result<Self::Mapped, F::Error>;
}
Required Associated Types§
Required Methods§
fn fold<F: Fold<T, TargetU = U> + ?Sized>( self, folder: &mut F, ) -> Result<Self::Mapped, F::Error>
Object Safety§
This trait is not object safe.