Skip to main content

assert_has_field

Macro assert_has_field 

Source
macro_rules! assert_has_field {
    ($field_name: expr, $impl_ty: ty, $scalar: ty $(, $prefix: expr)? $(,)?) => { ... };
}
Expand description

Ensures that the given $impl_ty has the specified [Field], otherwise panics with an understandable message.