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§

Source§

impl ServerPropertyValue for AlignmentX

Source§

impl ServerPropertyValue for AlignmentY

Source§

impl ServerPropertyValue for Color

Source§

impl ServerPropertyValue for CompositionBackfaceVisibility

Source§

impl ServerPropertyValue for CompositionBitmapInterpolationMode

Source§

impl ServerPropertyValue for CompositionBorderMode

Source§

impl ServerPropertyValue for CompositionCompositeMode

Source§

impl ServerPropertyValue for CompositionDropShadowSourcePolicy

Source§

impl ServerPropertyValue for CompositionStretch

Source§

impl ServerPropertyValue for CompositionStrokeCap

Source§

impl ServerPropertyValue for CompositionStrokeLineJoin

Source§

impl ServerPropertyValue for CompositionTransparencyLevel

Source§

impl ServerPropertyValue for CornerRadius

Source§

impl ServerPropertyValue for ImmutableExperimentalAcrylicMaterial

Source§

impl ServerPropertyValue for LayoutPassTiming

Source§

impl ServerPropertyValue for Matrix

Source§

impl ServerPropertyValue for PenLineCap

Source§

impl ServerPropertyValue for PenLineJoin

Source§

impl ServerPropertyValue for Quaternion

Source§

impl ServerPropertyValue for RelativePoint

Source§

impl ServerPropertyValue for RelativeRect

Source§

impl ServerPropertyValue for RelativeScalar

Source§

impl ServerPropertyValue for RenderOptions

Source§

impl ServerPropertyValue for RendererDebugOverlays

Source§

impl ServerPropertyValue for Size

Source§

impl ServerPropertyValue for Stretch

Source§

impl ServerPropertyValue for TextOptions

Source§

impl ServerPropertyValue for TileMode

Source§

impl ServerPropertyValue for Vector

Source§

impl ServerPropertyValue for Vector3D