FnDecl::contract_clauses
pub fn contract_clauses() -> string Import
Source: use macro::{FnDecl}; compiler/src/prelude/macro.hy The requires / ensures clauses, each as requires … (empty when there are none).
Called on a FnDecl value as value.contract_clauses(…).
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::uses_clause:uses {read, write}as declared (uses {}for 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.