extendr_api::prelude

Trait FixedInitializer

Source
pub unsafe trait FixedInitializer {
    type Elem;

    // Required methods
    fn as_init_slice(&self) -> &[Self::Elem];
    fn len() -> usize;
}
Expand description

Fixed-size array used for array initialization

Required Associated Types§

Required Methods§

Source

fn as_init_slice(&self) -> &[Self::Elem]

Source

fn len() -> usize

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> FixedInitializer for [T; 0]

Source§

impl<T> FixedInitializer for [T; 1]

Source§

impl<T> FixedInitializer for [T; 2]

Source§

impl<T> FixedInitializer for [T; 3]

Source§

impl<T> FixedInitializer for [T; 4]

Source§

impl<T> FixedInitializer for [T; 5]

Source§

impl<T> FixedInitializer for [T; 6]

Source§

impl<T> FixedInitializer for [T; 7]

Source§

impl<T> FixedInitializer for [T; 8]

Source§

impl<T> FixedInitializer for [T; 9]

Source§

impl<T> FixedInitializer for [T; 10]

Source§

impl<T> FixedInitializer for [T; 11]

Source§

impl<T> FixedInitializer for [T; 12]

Source§

impl<T> FixedInitializer for [T; 13]

Source§

impl<T> FixedInitializer for [T; 14]

Source§

impl<T> FixedInitializer for [T; 15]

Source§

impl<T> FixedInitializer for [T; 16]

Implementors§