Expand description
Compile-time assertions about constants, types, etc.
See crate ::static_assertions
.
Modules§
- The Rust Core Library
Macros§
- Asserts that a given configuration is set.
- Asserts that types are equal in alignment.
- Asserts that types are equal in size.
- Asserts that values pointed to are equal in size.
- Asserts that values are equal in size.
- Asserts that the type has the given fields.
- Asserts that the type implements all of the given traits.
- Asserts that the type implements any of the given traits.
- Asserts that the type implements exactly one in a set of traits.
- Asserts that the type does not implement all of the given traits.
- Asserts that the type does not implement any of the given traits.
- Asserts that the traits support dynamic dispatch (object-safety).
- Asserts that the trait is a child of all of the other traits.
- Asserts that the trait is a parent of all of the other traits.
- Asserts that all types in a list are equal to each other.
- Asserts that all types are not equal to each other.
- Asserts that constant expressions evaluate to
true
. - Asserts that constants are equal in value.
- Asserts that constants are not equal in value.