pub trait AnyTemplateProperty<'a> {
// Required methods
fn try_into_serialize(self: Box<Self>) -> Option<BoxedSerializeProperty<'a>>;
fn try_into_template(self: Box<Self>) -> Option<Box<dyn Template + 'a>>;
fn try_join(
self: Box<Self>,
separator: Box<dyn Template + 'a>,
) -> Option<Box<dyn Template + 'a>>;
}Expand description
Abstraction trait for a type-erased TemplateProperty
Required Methods§
fn try_into_serialize(self: Box<Self>) -> Option<BoxedSerializeProperty<'a>>
fn try_into_template(self: Box<Self>) -> Option<Box<dyn Template + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<'a, P, O> AnyTemplateProperty<'a> for ListMapProperty<'a, P, O>
impl<'a, P: CoreTemplatePropertyVar<'a>> AnyTemplateProperty<'a> for Expression<P>
impl<'a, P> AnyTemplateProperty<'a> for ConditionalProperty<'a, P>where
P: TemplateProperty<Output = bool> + 'a,
impl<'a> AnyTemplateProperty<'a> for TryList<BoxedAnyProperty<'a>>
Converts type-erased properties if all items support the operation.