Trait silkenweb::property::AsProperty
source · pub trait AsProperty {
type Type<'a>
where Self: 'a;
// Required method
fn as_property(&self) -> Self::Type<'_>;
}
Expand description
A type that can be used as a property.
This allows a type to be used as a property in custom_html_element
. It
exists so String
s can be passed as &str
and copyable values, like
bool
can be passed by value.
Required Associated Types§
Required Methods§
fn as_property(&self) -> Self::Type<'_>
Object Safety§
This trait is not object safe.