Skip to main content

ContentSource

Trait ContentSource 

Source
pub trait ContentSource: Send + Sync {
    // Required method
    fn content(&self, item: usize) -> Option<Content>;
}
Expand description

The rendered content of collection items, for the pages rendering on this thread.

Required Methods§

Source

fn content(&self, item: usize) -> Option<Content>

The content of the item whose object_id is item, or None when item is not an item this source knows.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§