Skip to main content

validate_result_compatibility

Function validate_result_compatibility 

Source
pub fn validate_result_compatibility(
    value: &MontyObject,
    compatibility: ResultCompatibility,
) -> Result<(), ResultCompatibilityError>
Expand description

Validate one result before any host mutation that a binding could report as failed.

Native Rust values are always accepted. Python validation mirrors the exact type-object cases supported by the pinned monty-proto converter and its depth backstop.

ยงErrors

Returns ResultCompatibilityError when Python projection is not total for value.