Skip to main content

IExpressionObject

Trait IExpressionObject 

Source
pub trait IExpressionObject {
    // Required method
    fn get_property(&self, name: &str) -> ExpressionVariant;

    // Provided method
    fn key(&self) -> ExpressionObjectKey { ... }
}
Expand description

An object whose properties can be read by an expression.

Required Methods§

Source

fn get_property(&self, name: &str) -> ExpressionVariant

Gets the value of the property with the given name; Invalid when there is no such property.

Provided Methods§

Source

fn key(&self) -> ExpressionObjectKey

The identity of the object, used to track the objects an expression depends on (see ExpressionTrackedObjects). The default is the address of the object, which is its reference identity for as long as the object is alive and not moved; an implementation that has a stable identifier should return that instead.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§