MCPcopy Create free account
hub / github.com/Lymia/enumset / error

Function error

enumset_derive/src/lib.rs:14–16  ·  view source on GitHub ↗

Helper function for emitting compile errors.

(span: proc_macro2::Span, message: impl Display)

Source from the content-addressed store, hash-verified

12
13/// Helper function for emitting compile errors.
14fn error<T>(span: proc_macro2::Span, message: impl Display) -> syn::Result<T> {
15 Err(syn::Error::new(span, message))
16}
17
18#[proc_macro_derive(EnumSetType, attributes(enumset))]
19pub fn derive_enum_set_type(input: TokenStream) -> TokenStream {

Callers 10

push_serialize_reprMethod · 0.85
push_reprMethod · 0.85
push_variantMethod · 0.85
validateMethod · 0.85
map_lsbMethod · 0.85
map_msbMethod · 0.85
map_masksMethod · 0.85
plan_for_enumFunction · 0.85
eval_literalFunction · 0.85
eval_binFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected