Skip to main content

ServerPropertyValue

Trait ServerPropertyValue 

Source
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§

Source

fn differs(&self, other: &Self) -> bool

Provided Methods§

Source

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 bool

Source§

fn differs(&self, other: &Self) -> bool

Source§

impl ServerPropertyValue for f32

Source§

fn differs(&self, other: &Self) -> bool

Source§

fn default_equals(&self, other: &Self) -> bool

Source§

impl ServerPropertyValue for f64

Source§

fn differs(&self, other: &Self) -> bool

Source§

fn default_equals(&self, other: &Self) -> bool

Source§

impl<T: ?Sized> ServerPropertyValue for Option<Arc<T>>

Shared, thread-safe references compare by identity.

Source§

fn differs(&self, other: &Self) -> bool

Source§

impl<T: ?Sized> ServerPropertyValue for Option<BatchResource<T>>

Source§

fn differs(&self, other: &Self) -> bool

Source§

impl<T: ?Sized> ServerPropertyValue for Option<Rc<T>>

References compare by identity.

Source§

fn differs(&self, other: &Self) -> bool

Source§

impl<T: ?Sized> ServerPropertyValue for Option<ServerResourceRef<T>>

Source§

fn differs(&self, other: &Self) -> bool

Implementors§