Skip to content
YosoiDocs

compare_values

yosoi.map.compare_values

def compare_values(kind: MapOrderingKind, left: object, right: object) -> int:

Compare typed Map values with the public Rust Ord implementation.

String-backed Literal aliases remain ordinary strings; pass their kind to this function when their Rust enum declaration order is needed.

Source: python/yosoi/map.py:45