Method in macro · Attr compiler

Attr::src

pub fn src() -> string
Import
use macro::{Attr};
Source: compiler/src/prelude/macro.hy

The attribute as written: #[name(key = "v", 2)].

Called on a Attr value as value.src(…).

Returns#

string

See also#

  • Attr: #[name(args)] on a declaration, field or variant.
  • Attr::has: True when the attribute has an argument named key, or a bare key.
  • Attr::arg: Value of the key = value argument, or fallback.
↑ ↓ navigate ↵ open