ModularM
Modular17mo ago
1 reply
Darkmatter

Mojo equivalent to Rust's phantom type

Does Mojo have an equivalent to Rust's phantom type? I have a few usecases where I need a raw pointer (for syscalls) to be assigned a lifetime via a wrapper, such as for iovec.
Was this page helpful?