Trait Tuple

Source
pub trait Tuple: Primitive {
    const N: usize;
}

Required Associated Constants§

Source

const N: 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 Tuple for ()

Source§

const N: usize = 0usize

Source§

impl<T1: ?Sized> Tuple for (T1₁, T1₂, …, T1ₙ)

This trait is implemented for tuples up to 12 items long.

Source§

const N: usize = 1usize

Implementors§