Skip to main content

TypedProperty

Trait TypedProperty 

Source
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§

Source

type Value: PropertyValue

The value type of the property.

Required Methods§

Source

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".

Implementors§