Trait devela::data::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 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 a ArrayFmt for formatting purposes.

Object Safety§

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§