Skip to main content

reject_null

Function reject_null 

Source
pub fn reject_null<V: Source>(value: &V, path: &str) -> Result<(), ProbeError>
Expand description

Refuse null wherever a value belongs.

The counterpart of member_value for a place that has no optionality to consider — a union’s selected member, an element of a collection. Same rule, same message, so the three backends report the same refusal.

§Errors

ProbeError::Mismatch.