Trait suppositions::generators::GeneratorSized
[−]
[src]
pub trait GeneratorSized { type Item; fn boxed(self) -> Box<GeneratorObject<Item = Self::Item>>; }
An extension trait that allows use of methods that assume Self has a known
size, like #boxed
.
Associated Types
type Item
See Generator::Item
Required Methods
fn boxed(self) -> Box<GeneratorObject<Item = Self::Item>>
Returns a boxed trait object. Useful for returning a series of chained combinators without having to declare the full type.