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