Expand description
Indexing Utilities
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.
- Generate the boilerplate for a newtyped index struct, for use with
IndexVec
. - A macro equivalent to the stdlib’s
vec![]
, but producing anIndexVec
.
Structs§
- A slice that only accepts indices of a specific type. Note that the intended usage is as
IndexSlice<I, [T]>
. - A Vec that only accepts indices of a specific type.