Skip to main content

SetterBase

Trait SetterBase 

Source
pub trait SetterBase: 'static {
    // Provided method
    fn as_any(&self) -> Option<&dyn Any> { ... }
}
Expand description

Represents the base class for value setters.

Provided Methods§

Source

fn as_any(&self) -> Option<&dyn Any>

The implementing value, for casting to its concrete type (as_any()?.downcast_ref::<T>()): the equivalent of is/as on the contract. None for an implementation that does not expose itself.

Trait Implementations§

Source§

impl MarkupTyped for dyn SetterBase

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.
Source§

impl PartialEq for dyn SetterBase

Handles compare by identity (reference equality), so that they can be held in property and untyped values.

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§