Skip to main content

ArrayKind

Trait ArrayKind 

Source
pub trait ArrayKind:
    HasId
    + XNode
    + Deref<Target = [Self::Elem]>
    + 'static {
    type Elem: Clone + Display + Debug + 'static;

    // Required method
    fn from_array_element(elem: &ArrayElement) -> Option<&Self>;
}
Expand description

A trait for the common functionality of the array types.

Required Associated Types§

Source

type Elem: Clone + Display + Debug + 'static

The stored element type.

Required Methods§

Source

fn from_array_element(elem: &ArrayElement) -> Option<&Self>

Extract a typed array from an ArrayElement.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§