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§
Sourcefn build(
&self,
service_provider: Option<&Rc<dyn IServiceProvider>>,
) -> Option<BoxedValue>
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
impl MarkupTyped for dyn IDeferredContent
Source§const MARKUP: &'static MarkupType
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.
impl PartialEq for dyn IDeferredContent
Handles compare by identity (reference equality), so that they can be held in property and untyped values.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".