Trait AttributeIdent

Source
pub trait AttributeIdent {
    const IDENTS: &'static [&'static str];

    // Provided method
    fn is_ident(path: &Path) -> bool { ... }
}
Expand description

Helper trait for holding idents.

Required Associated Constants§

Source

const IDENTS: &'static [&'static str]

Holds the idents.

Provided Methods§

Source

fn is_ident(path: &Path) -> bool

Check if path exists in the idents.

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.

Implementors§