pub trait TypedProperty: 'static {
type Value: PropertyValue;
// Required method
fn untyped(&'static self) -> &'static FerroProperty;
}Expand description
A property with a statically known value type: a styled, attached or direct property.
This is what lets the members of FerroObjectExtensions accept any kind
of typed property and route to the matching FerroObject member.
Required Associated Types§
Sourcetype Value: PropertyValue
type Value: PropertyValue
The value type of the property.
Required Methods§
Sourcefn untyped(&'static self) -> &'static FerroProperty
fn untyped(&'static self) -> &'static FerroProperty
The untyped base of the property.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".