Skip to main content

Symbol

Trait Symbol 

Source
pub trait Symbol<I>:
    Copy
    + Hash
    + PartialEq
    + Eq
    + Debug
where I: Interner,
{ const KW_UNDERSCORE_LIFETIME: Self; const KW_STATIC_LIFETIME: Self; const SYM_ANON: Self; }

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'tcx> Symbol<TyCtxt<'tcx>> for Symbol

Source§

const KW_UNDERSCORE_LIFETIME: Symbol = kw::UnderscoreLifetime

Source§

const KW_STATIC_LIFETIME: Symbol = kw::StaticLifetime

Source§

const SYM_ANON: Symbol = sym::anon

Implementors§