<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Attribute (programming) - Page 19 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Attribute_(programming)&amp;p=18">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Attribute_%28programming%29&amp;p=20">3.Next</a>
</p>
<p> print(f"{func.__name__} returned {result}")        return result    return wrapper</p>

<p>@log_calldef add(a: int, b: int) -> int:    return a + b</p>

<p>@log_calldef greet(name: str) -> str:    return f"Hello, {name}!"</p>

<p><big> Rust </big></p>
<p>In <a href="page.php?w=Rust_%28programming_language%29">Rust</a>, the syntax of an attribute is <syntaxhighlight lang="rust" inline>#[attr]</syntaxhighlight>, placed on any symbol, or even statements. Attributes modify how code is compiled or behaves by attaching metadata to a symbol. In Rust, attributes</p><p>
<a accesskey="1" href="page.php?w=Attribute_(programming)&amp;p=18">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Attribute_%28programming%29&amp;p=20">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
