Skip to main content

IDeferredContent

Trait IDeferredContent 

Source
pub trait IDeferredContent {
    // Required method
    fn build(
        &self,
        service_provider: Option<&Rc<dyn IServiceProvider>>,
    ) -> Option<BoxedValue>;
}
Expand description

Represents a deferred content: content that is built on demand, the first time it is requested.

Required Methods§

Source

fn build( &self, service_provider: Option<&Rc<dyn IServiceProvider>>, ) -> Option<BoxedValue>

Builds the deferred content. service_provider is the service provider to build it with, if any; deferred resources are built with none.

Trait Implementations§

Source§

impl MarkupTyped for dyn IDeferredContent

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.
Source§

impl PartialEq for dyn IDeferredContent

Handles compare by identity (reference equality), so that they can be held in property and untyped values.

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§