Trait stable_mir::fold::Foldable

source ·
pub trait Foldable: Sized + Clone {
    // Required method
    fn super_fold<V: Folder>(
        &self,
        folder: &mut V
    ) -> ControlFlow<V::Break, Self>;

    // Provided method
    fn fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self> { ... }
}

Required Methods§

source

fn super_fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>

Provided Methods§

source

fn fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>

Implementations on Foreign Types§

source§

impl<T: Foldable> Foldable for Option<T>

source§

fn super_fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>

source§

impl<T: Foldable> Foldable for Vec<T>

source§

fn super_fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>

Implementors§