Trait FlexibleArrayHeader

Source
pub trait FlexibleArrayHeader: Sized {
    // Required method
    fn len(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn constructor<I: Iterator>(
        self,
        items: I,
    ) -> FlexibleArrayConstructor<Self, I> { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn constructor<I: Iterator>(self, items: I) -> FlexibleArrayConstructor<Self, I>

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 FlexibleArrayHeader for usize

Source§

fn len(&self) -> usize

Implementors§