Skip to main content

pred_condition_and_message_for

Function pred_condition_and_message_for 

Source
pub fn pred_condition_and_message_for(
    pred: &PredKind,
    receiver: &str,
    base: Option<BaseType>,
) -> (TsExpr, String)
Expand description

pred_condition_and_message knowing the receiver’s base type: a Decimal is an object, so its numeric predicates are not recv > 0.