How do you import and reference enum types from the Rust std lib?
I\'m trying to use the Ordering enum from the std::sync::atomics module.
Ordering
std::sync::atomics
Editor's note: This answer predates Rust 1.0 and is not applicable for Rust 1.0.
Enum variants are not scoped inside the enum; they are thus std::sync::atomics::Relaxed, &c.
std::sync::atomics::Relaxed
Scoped enum variants is the subject of issue 10090.