MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / non_enum_error

Function non_enum_error

sea-orm-macros/src/strum/helpers/mod.rs:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10use quote::ToTokens;
11
12pub fn non_enum_error() -> syn::Error {
13 syn::Error::new(Span::call_site(), "This macro only supports enums.")
14}
15
16pub fn occurrence_error<T: ToTokens>(fst: T, snd: T, attr: &str) -> syn::Error {
17 let mut e =

Callers 1

enum_iter_innerFunction · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected