pub trait StylePropReader {
type State: Debug;
type Type: Clone;
// Required methods
fn read(
state: &mut Self::State,
style: &Style,
fallback: &Style,
now: &Instant,
request_transition: &mut bool,
) -> bool;
fn get(state: &Self::State) -> Self::Type;
fn new() -> Self::State;
}
Required Associated Types§
Required Methods§
Sourcefn read(
state: &mut Self::State,
style: &Style,
fallback: &Style,
now: &Instant,
request_transition: &mut bool,
) -> bool
fn read( state: &mut Self::State, style: &Style, fallback: &Style, now: &Instant, request_transition: &mut bool, ) -> bool
Reads the property from the style. Returns true if the property changed.
fn get(state: &Self::State) -> Self::Type
fn new() -> Self::State
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.