Trait StrictTuple

Source
pub trait StrictTuple: StrictProduct {
    const FIELD_COUNT: u8;

    // Provided methods
    fn strict_check_fields() { ... }
    fn strict_type_info() -> TypeInfo<Self> { ... }
}

Required Associated Constants§

Provided Methods§

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<A: StrictType + Default, B: StrictType + Default> StrictTuple for (A, B)

Source§

const FIELD_COUNT: u8 = 2u8

Source§

impl<A: StrictType + Default, B: StrictType + Default, C: StrictType + Default> StrictTuple for (A, B, C)

Source§

const FIELD_COUNT: u8 = 3u8

Source§

impl<T> StrictTuple for Box<T>
where T: Default + StrictTuple,

Source§

const FIELD_COUNT: u8 = T::FIELD_COUNT

Implementors§