Skip to main content

IBindableArray

Trait IBindableArray 

Source
pub trait IBindableArray {
    // Required methods
    fn rank(&self) -> usize;
    fn element_type(&self) -> ValueType;
    fn get_value(
        &self,
        indexes: &[i32],
    ) -> Result<Option<BoxedValue>, BindingError>;
    fn set_value(
        &self,
        indexes: &[i32],
        value: Option<&BoxedValue>,
    ) -> Result<(), BindingError>;
}
Expand description

Untyped access to an array: a fixed-size collection accessed with integer indexes, one per dimension.

Required Methods§

Source

fn rank(&self) -> usize

The number of dimensions.

Source

fn element_type(&self) -> ValueType

The type of the elements.

Source

fn get_value(&self, indexes: &[i32]) -> Result<Option<BoxedValue>, BindingError>

The element at indexes.

Source

fn set_value( &self, indexes: &[i32], value: Option<&BoxedValue>, ) -> Result<(), BindingError>

Replaces the element at indexes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§