Skip to main content

ListTypeProperty

Trait ListTypeProperty 

pub trait ListTypeProperty {
    type Output;

    // Required method
    fn property<R>() -> Self::Output
       where R: List;
}
Expand description

Property generator for iterating over type-level lists.

§Examples

See ListTypeIterator, which uses TypeId as its property generator.

Required Associated Types§

type Output

The per-element property type produced during iteration.

Required Methods§

fn property<R>() -> Self::Output
where R: List,

Computes the property for the current list head in R.

§Examples

See ListTypeIterator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl ListTypeProperty for TypeId

§

fn property<R>() -> <TypeId as ListTypeProperty>::Output
where R: List,

Returns the current logical head’s runtime type identity.

§

type Output = TypeId

Implementors§