Module pr47::util::type_assert [−][src]
Expand description
type_assert.rs
: defines type assertions used by proc-macro generated codes.
The purpose of module type_assert
is similar to static_assert
s in C++, which makes the
diagnostics information shorter and clearer. If the desired property of one type is not
satisfied, compilation will fail then, with error information indicated.
Modules
Contains traits used by type assertions.
Functions
Assert that the type parameter T
is cloneable.
Assert that the type parameter T
is an immutable reference.
Assert that the type parameter T
is a mutable reference.
Assert that the type parameter T
is an null-convertible Option
type.
Assert that the type parameter T
is a reference.
Assert that the type parameter T
is an exception-convertible Result
type.
Assert that the type parameter T
satisfies StaticBase
requirements.