pub trait MeshIndex: Copy + Default {
// Required methods
fn to_u64(self) -> u64;
fn from_usize(v: usize) -> Self;
fn from_i32(v: i32) -> Self;
}Expand description
Index parameter of a MeshGLP (u32 or u64), mirroring the I
template parameter of the C++ MeshGLP. The kernel itself indexes with
32 bits for both instantiations (as the C++ does — its import casts every
index to uint32_t), so u64 indices wider than 32 bits truncate on
import exactly like the C++ static_cast.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".