pub trait ArrayProperty: Length {
    type Type;

    // Required methods
    fn set(&self, index: usize, value: impl Into<Self::Type>);
    fn clear(&self);
Expand description

Trait implemented by all array properties providing common operations on arrays.

Required Associated Types§


type Type

The type of the array entries.

Required Methods§


fn set(&self, index: usize, value: impl Into<Self::Type>)

Sets the array value to value at the given index.


fn clear(&self)

Sets all slots of the array to 0 and releases any references.

Object Safety§

This trait is not object safe.