Skip to main content

set_message

Function set_message 

Source
fn set_message(
    slot: &mut Option<String>,
    value: &LitStr,
    check: &str,
    if_empty: &str,
) -> Result<()>
Expand description

Record value as the message in slot of check(...); if_empty ends the error for an empty message.