Skip to main content

CollectionNode

Trait CollectionNode 

Source
pub trait CollectionNode: ExpressionNode {
    // Required methods
    fn collection_base(&self) -> &CollectionNodeBase;
    fn should_update(&self, source: &BoxedValue, property_name: &str) -> bool;
    fn try_get_first_argument_as_int(&self) -> Option<i32>;
    fn update_value(&self, source: &BoxedValue) -> Result<(), BindingError>;
}
Expand description

The members a node that reads from a collection provides to CollectionNodeBase.

Required Methods§

Source

fn collection_base(&self) -> &CollectionNodeBase

Source

fn should_update(&self, source: &BoxedValue, property_name: &str) -> bool

Whether a property change notification of the source for property_name affects the value of the node.

Source

fn try_get_first_argument_as_int(&self) -> Option<i32>

The first argument of the node as an integer, if it is one.

Source

fn update_value(&self, source: &BoxedValue) -> Result<(), BindingError>

Reads the value from the source. An error is what the getter of a managed indexer throws.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§