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§
fn collection_base(&self) -> &CollectionNodeBase
Sourcefn should_update(&self, source: &BoxedValue, property_name: &str) -> bool
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.
Sourcefn try_get_first_argument_as_int(&self) -> Option<i32>
fn try_get_first_argument_as_int(&self) -> Option<i32>
The first argument of the node as an integer, if it is one.
Sourcefn update_value(&self, source: &BoxedValue) -> Result<(), BindingError>
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".