pub trait MutableArrayElement<'a>: MutableField<'a> {
// Required methods
fn decode_array(words: &'a [u32]) -> Option<Vec<Self>>;
fn encode_array(
values: &[Self],
buffer: &mut Buffer,
) -> Result<Unit, MutableError>;
// Provided methods
fn detect_array_words(words: &'a [u32]) -> Option<&'a [u32]> { ... }
fn detect_array_field(field: FieldView<'a>) -> Option<&'a [u32]> { ... }
}Expand description
Array-specific extension of MutableField used by generated bindings.
Required Methods§
fn decode_array(words: &'a [u32]) -> Option<Vec<Self>>
fn encode_array( values: &[Self], buffer: &mut Buffer, ) -> Result<Unit, MutableError>
Provided Methods§
fn detect_array_words(words: &'a [u32]) -> Option<&'a [u32]>
fn detect_array_field(field: FieldView<'a>) -> Option<&'a [u32]>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".