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§
Sourcefn element_type(&self) -> ValueType
fn element_type(&self) -> ValueType
The type of the elements.
Sourcefn get_value(&self, indexes: &[i32]) -> Result<Option<BoxedValue>, BindingError>
fn get_value(&self, indexes: &[i32]) -> Result<Option<BoxedValue>, BindingError>
The element at indexes.
Sourcefn set_value(
&self,
indexes: &[i32],
value: Option<&BoxedValue>,
) -> Result<(), BindingError>
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".