pub trait AnimatableField<T> {
// Required methods
fn static_val(&self) -> Option<T>
where T: Copy;
fn static_ref(&self) -> Option<&T>;
fn binding(&self) -> Option<&Binding>;
}Expand description
Read helpers for the Option<Animatable<T>> style fields, so read sites
stay as terse as the plain Option<T> they replaced.
Required Methods§
Sourcefn static_val(&self) -> Option<T>where
T: Copy,
fn static_val(&self) -> Option<T>where
T: Copy,
The static value by copy; None when absent or animated.
Sourcefn static_ref(&self) -> Option<&T>
fn static_ref(&self) -> Option<&T>
The static value by reference; None when absent or animated.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".