pub trait IterBlockComponent: Sized {
type Item;
// Required method
fn append(
self,
block: impl FnMut(Self::Item, Document) -> Document,
document: Document,
) -> Document;
// Provided method
fn with<F>(component: Self, block: F) -> CurriedIterBlockComponent<Self, F>
where F: FnMut(Self::Item, Document) -> Document { ... }
}
Required Associated Types§
Required Methods§
fn append( self, block: impl FnMut(Self::Item, Document) -> Document, document: Document, ) -> Document
Provided Methods§
fn with<F>(component: Self, block: F) -> CurriedIterBlockComponent<Self, F>
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.