Skip to main content

na_refusal_stmt

Function na_refusal_stmt 

Source
fn na_refusal_stmt(
    has_na: TokenStream,
    r_name: &str,
    message: &str,
    crate_class: &[String],
    span: Span,
) -> TokenStream
Expand description

if <has_na> { return <the no_na argument error>; }: the tagged kind = "conversion" value no_na’s R guard would raise (see no_na_value_stmt), for the post-conversion no_na check and the NonNa<T> check before the conversion alike.