language_reporting

Trait BlockComponent

Source
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§

Source

fn append( self, block: impl FnOnce(Document) -> Document, document: Document, ) -> Document

Provided Methods§

Source

fn with<F>(component: Self, block: F) -> CurriedBlockComponent<Self, F>
where F: FnOnce(Document) -> Document,

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§