Skip to content

std::type

Import with import std::type.

Types

type Type<T>

A type passed as a value.

A type name is a Type<T> value only where a Type<T> is expected, as in Context.value(context, TraceId). Anywhere else the name keeps its meaning as a zero-sized value or a constructor. Two witnesses are equal when they name the same type, and a witness inspects as Type<TraceId>.

impl Debug for Type<T>

fn inspect<T>(value: Type<T>) -> String where T: Debug

impl Debug.inspect