Trait Recursive

Source
pub trait Recursive {
    type Container;

    // Required method
    fn destruct(self) -> impl Iterator<Item = Self::Container>;
}
Expand description

The Recursive::destruct function decomposes an object into some component parts. Usually, Recursive::Container is something like Box<Self> or Arc<Self>.

Required Associated Types§

Required Methods§

Source

fn destruct(self) -> impl Iterator<Item = Self::Container>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§