pub(crate) trait NoArgsAttributeParser<S: Stage>: 'static {
const PATH: &[Symbol];
const ALLOWED_TARGETS: AllowedTargets;
const CREATE: fn(Span) -> AttributeKind;
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
const SAFETY: AttributeSafety = AttributeSafety::Normal;
}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 ALLOWED_TARGETS: AllowedTargets
Sourceconst CREATE: fn(Span) -> AttributeKind
const CREATE: fn(Span) -> AttributeKind
Create the AttributeKind given attribute’s Span.
Provided Associated Constants§
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error
const SAFETY: AttributeSafety = AttributeSafety::Normal
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.