Skip to main content

ordering_variant

Function ordering_variant 

Source
pub fn ordering_variant(name: &str) -> Option<&'static str>
Expand description

Returns the variant name if name is one of the prelude Ordering variants (Less/Equal/Greater), else None. The returned &'static str is the canonical spelling, suitable for emitting into target source.