Skip to main content

const_str_eq

Function const_str_eq 

Source
const fn const_str_eq(a: &str, b: &str) -> bool
Expand description

Const-eval equality check for two &str values (stable since Rust 1.46).

Used by assert_no_payload_field_collision inside a const {} block.