Crate type_level_values[][src]

Crate for using type level values and functions.

Documentation

For documentation outside of API docs go here.

Minimum supported Rust version

This package support rust back to 1.20 . Using a build script to enable features after Rust 1.20.

no-std support

To use this crate in no_std contexts disable the default-feature.

Cargo Features

"std":Enables standard library support.Enabled by default.

"serde":Enables serde support.Enabled by default.

Re-exports

pub extern crate std as std_;
pub extern crate typenum;
pub extern crate core_extensions;
pub extern crate derive_type_level;

Modules

const_wrapper
docs

This library has many kinds of uses,from defining a compile-time equivalent of a type to using that type as a parameter to a struct/function.

enum_stuff
extern_types
field_traits
fn_adaptors

Operator adaptors for TypeFn_ implementors.

fn_types

These are types that represent operators,unary and binary.

initialization
macros
new_types
ops
prelude
runtime_value
std_types
type_fn
user_traits

Traits for regular types which have a Const-parameter.

util_types

Macros

const_method

A macro for defining a ConstMethod.

construct

Declares a ConstValue type,giving every field a type.

construct_val

Constructs a ConstValue value,initializing every field.

set_fields

Macro for setting the fields of a compile-time struct.

tlist

Type macro for a type-level-list.

tlist_val

Instantiates a type-level-list, which is just a MarkerType and does not contain instances of the types it lists.

type_fn

A macro for implementing TypeFn_ .