docs

v0.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