pub trait StylePropValue:
Clone
+ PartialEq
+ Debug {
// Provided methods
fn debug_view(&self) -> Option<Box<dyn View>> { ... }
fn interpolate(&self, _other: &Self, _value: f64) -> Option<Self> { ... }
fn combine(&self, _other: &Self) -> CombineResult<Self> { ... }
fn content_hash(&self) -> u64 { ... }
}Provided Methods§
fn debug_view(&self) -> Option<Box<dyn View>>
fn interpolate(&self, _other: &Self, _value: f64) -> Option<Self>
fn combine(&self, _other: &Self) -> CombineResult<Self>
Sourcefn content_hash(&self) -> u64
fn content_hash(&self) -> u64
Compute a content-based hash for this value.
This hash is used for style caching - identical values should produce identical hashes. The default implementation uses the Debug representation, which works for most types. Types that implement Hash can override this for better performance.
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.