Skip to main content

ListTypeProperty

Trait ListTypeProperty 

Source
pub trait ListTypeProperty {
    type Output;

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

Property generator for iterating over type-level lists.

§Examples

See ListTypeIterator, which uses TypeId as its property generator.

Required Associated Types§

Source

type Output

The per-element property type produced during iteration.

Required Methods§

Source

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

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§

Source§

impl ListTypeProperty for TypeId

Source§

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

Returns the current logical head’s runtime type identity.

Source§

type Output = TypeId

Implementors§