pub trait ServerPropertyValue {
// Required method
fn differs(&self, other: &Self) -> bool;
// Provided method
fn default_equals(&self, other: &Self) -> bool { ... }
}Expand description
Equality of property values as the generated setters need it.
differs is the != of the setter; default_equals is the
EqualityComparer<T>.Default.Equals of ServerRenderResourceCore. They
disagree for NaN.
Required Methods§
Provided Methods§
fn default_equals(&self, other: &Self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ServerPropertyValue for f32
impl ServerPropertyValue for f32
Source§impl ServerPropertyValue for f64
impl ServerPropertyValue for f64
Source§impl<T: ?Sized> ServerPropertyValue for Option<Arc<T>>
Shared, thread-safe references compare by identity.
impl<T: ?Sized> ServerPropertyValue for Option<Arc<T>>
Shared, thread-safe references compare by identity.