PartialOrdFn

Type Alias PartialOrdFn 

Source
pub type PartialOrdFn = for<'l, 'r> unsafe fn(left: PtrConst<'l>, right: 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.