devela::data::collections

Trait ExtArray

Source
pub trait ExtArray: Sealed {
    const LEN: usize;

    // Provided method
    fn fmt(&self) -> ArrayFmt<'_, Self>
       where Self: Sized { ... }
}
Expand description

Extension trait providing convenience methods for [T; N] arrays.

This trait is sealed and cannot be implemented for any other type.

Required Associated Constants§

Source

const LEN: usize

The length of this array.

Provided Methods§

Source

fn fmt(&self) -> ArrayFmt<'_, Self>
where Self: Sized,

Wraps the array in an ArrayFmt for formatting purposes.

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 LEN: usize> ExtArray for [T; LEN]

Source§

const LEN: usize = LEN

Implementors§