ReflectedArray

Trait ReflectedArray 

Source
pub trait ReflectedArray: Reflected {
    // Required methods
    fn element() -> Type;
    fn length() -> usize;
}
Expand description

A trait representing a reflected array. Supports operations specific to arrays

Required Methods§

Source

fn element() -> Type

Retrieve the element type of this Array

Source

fn length() -> usize

Retrieve the length of this Array

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, const N: usize> ReflectedArray for [T; N]
where T: Reflected, T::Key: Sized,

Implementors§