docs

您正在閱讀 v0.1.2 的文件。Nabi 0.1.2 已停止支援。 最新版本:v0.1.3 →

core::reflect::attr

本頁內容

API 參考只有英文版,由標準函式庫原始碼中的英文文件註解產生。

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