FnDecl::uses_clause
pub fn uses_clause() -> string Import
Source: use macro::{FnDecl}; compiler/src/prelude/macro.hy uses {read, write} as declared (uses {} for none).
Called on a FnDecl value as value.uses_clause(…).
Returns#
string
See also#
FnDecl: A function or method handed to an attribute macro.FnDecl::body_sourceFnDecl::signature:name(T a, U b) -> R: the signature as written, under a new name.FnDecl::with_name: The function under another name, with its remaining attributes:#[other] pub fn name(T a) -> R { body }.FnDecl::contract_clauses: Therequires/ensuresclauses, each asrequires …(empty when there are none).FnDecl::call: A call ofnamewith this function’s arguments (self.name(a, b)for an instance method).FnDecl::arg_names:a, b: the parameter names, for forwarding a call.