Method in macro · FnDecl compiler

FnDecl::with_name

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

The function under another name, with its remaining attributes: #[other] pub fn name(T a) -> R { body }.

Called on a FnDecl value as value.with_name(…).

Parameters#

NameType
namestring

Returns#

string

See also#

↑ ↓ navigate ↵ open