Type Alias PartialOrdFn

Source
pub type PartialOrdFn = for<'l, 'r> unsafe fn(_: PtrConst<'l>, _: PtrConst<'r>) -> Option<Ordering>;
Expand description

Function to compare two values and return their ordering if comparable

ยงSafety

Both left and right parameters must point to aligned, initialized memory of the correct type.