bitfields-impl 2.0.3

Macro for generating flexible bitfields. Useful for low-level code (embedded or emulators).
Documentation
1
2
3
4
5
6
7
8
9
use std::fmt::Display;

/// Creates a user parsing error compiling pointing to the invalid input.
pub fn create_user_parsing_compiler_error(
    invalid_span: proc_macro2::Span,
    msg: impl Display,
) -> syn::Error {
    syn::Error::new(invalid_span, msg)
}