Module gut::index[][src]

Expand description

This module defines an index type that can be invalid, although it has the same size as usize. This allows collections of usize integers to be reinterpreted as collections of Index types. For indexing into mesh topologies use types defined in the mesh::topology module.

Structs

A possibly invalid unsigned index. The maximum usize integer represents an invalid index. This index type is ideal for storage. Overflow is not handled by this type. Instead we rely on Rust’s internal overflow panics during debug builds.

Traits

A trait that defines what it means for an index to be a checked index. In other words implementers are indices that are checked for validity in some way.