pub(crate) trait NoArgsAttributeParser<S: Stage>: 'static {
const PATH: &[Symbol];
const ON_DUPLICATE: OnDuplicate<S>;
const CREATE: fn(Span) -> AttributeKind;
}
Expand description
An even simpler version of SingleAttributeParser
:
now automatically check that there are no arguments provided to the attribute.
WithoutArgs<T> where T: NoArgsAttributeParser
implements SingleAttributeParser
.
Required Associated Constants§
const PATH: &[Symbol]
const ON_DUPLICATE: OnDuplicate<S>
Sourceconst CREATE: fn(Span) -> AttributeKind
const CREATE: fn(Span) -> AttributeKind
Create the AttributeKind
given attribute’s Span
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.