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 content_hash(&self) -> u64 { ... }
}Provided Methods§
fn debug_view(&self) -> Option<Box<dyn View>>
fn interpolate(&self, _other: &Self, _value: f64) -> Option<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 but allocates. Types should override this for better performance.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".