pub trait BlockComponent: Sized {
// Required method
fn append(
self,
block: impl FnOnce(Document) -> Document,
document: Document,
) -> Document;
// Provided method
fn with<F: FnOnce(Document) -> Document>(
component: Self,
block: F,
) -> CurriedBlockComponent<Self, F> { ... }
}
Required Methods§
Provided Methods§
fn with<F: FnOnce(Document) -> Document>( component: Self, block: F, ) -> CurriedBlockComponent<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.