docs

You are reading the docs for v0.1.0. Nabi 0.1.0 is no longer supported. Latest release: v0.1.3 →

core::reflect::attr

On this page

runtime attributes: values of a #[runtime_attribute(name)] struct written as #[name(..)] on a type, field or variant, kept in read-only data.

Structs

AttrSource

pub struct Attr

One runtime attribute on a type, field or variant.

  • pub fn type_ref(self) -> TypeRef§

    Source

    The attribute struct.

  • pub fn get<A>(self) -> A | none§

    Source

    Its value as an A, when it is one.

Trait implementations 2