|
| 1 | +<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; font-size: 70%;"> |
| 2 | + <style> |
| 3 | + .node { |
| 4 | + padding: .5em; |
| 5 | + border: thin solid; |
| 6 | + border-radius: 1em; |
| 7 | + } |
| 8 | + h3 { |
| 9 | + margin-top: 0 !important; |
| 10 | + font-size: 1.25em !important; |
| 11 | + } |
| 12 | + h3 code { |
| 13 | + background: none !important; |
| 14 | + } |
| 15 | + .arrow-head { |
| 16 | + width: 10px; |
| 17 | + height: 10px; |
| 18 | + border-top: thin solid; |
| 19 | + border-right: thin solid; |
| 20 | + transform: rotate(-45deg); |
| 21 | + margin-bottom: -11px; |
| 22 | + } |
| 23 | + .arrow-v { |
| 24 | + width: 0px; |
| 25 | + min-height: 10px; |
| 26 | + border-left: thin solid; |
| 27 | + } |
| 28 | + .arrow-h { |
| 29 | + height: 0px; |
| 30 | + border-bottom: thin solid; |
| 31 | + } |
| 32 | + .arrow-label { |
| 33 | + padding-inline: 5px; |
| 34 | + background: none !important; |
| 35 | + text-align: center !important; |
| 36 | + max-width: calc(100% - 1.5em); |
| 37 | + } |
| 38 | + .center-h { |
| 39 | + margin-inline: auto; |
| 40 | + } |
| 41 | + .arrow-cell { |
| 42 | + display: flex; |
| 43 | + flex-direction: column; |
| 44 | + align-content: center; |
| 45 | + align-items: center; |
| 46 | + } |
| 47 | + </style> |
| 48 | + <div class="node"> |
| 49 | + <h3><a href="../trait.FromAttr.html"><code>FromAttr</code></a></h3> |
| 50 | + <p>Main entry point. Derived via macro. Anything that can be parsed from one or multiple attributes.</p> |
| 51 | + </div> |
| 52 | + <div class="node"> |
| 53 | + <h3><a href="trait.AttributeNamed.html"><code>AttributeNamed</code></a></h3> |
| 54 | + <p>Values that can be parsed named, e.g. <code>name(<value>)</code>, <code>name = <value></code>, <code>name</code> (as flag).</p> |
| 55 | + <p>This is the default parsing mode used for fields in derived <a href="../trait.FromAttr.html"><code>FromAttr</code></a> implementations.</p> |
| 56 | + </div> |
| 57 | + <div class="node"> |
| 58 | + <h3><a href="trait.AttributePositional.html"><code>AttributePositional</code></a></h3> |
| 59 | + <p>Values that can be parsed positionally, i.e., without a name, e.g. <code>"literal"</code>, <code>a + b</code>, <code>true</code>.</p> |
| 60 | + <p>When deriving <a href="../trait.FromAttr.html"><code>FromAttr</code></a> this is enabled via putting <code>#[attr(positional)]</code> on the field.</p> |
| 61 | + </div> |
| 62 | + <div class="arrow-cell" style="grid-column: 1; grid-row: 2;"> |
| 63 | + <div class="arrow-head"></div> |
| 64 | + <div style="flex: 1" class="arrow-v"></div> |
| 65 | + <code class="arrow-label">impl <T: AttributeValue> FromAttr for T</code> |
| 66 | + <div style="flex: 1" class="arrow-v"></div> |
| 67 | + </div> |
| 68 | + <div class="arrow-cell" style="grid-column: 2; grid-row: 2;"> |
| 69 | + <div class="arrow-head"></div> |
| 70 | + <div style="flex: 1" class="arrow-v"></div> |
| 71 | + <code class="arrow-label">impl <T: AttributeValue> AttributeNamed for T</code> |
| 72 | + <div style="flex: 1" class="arrow-v"></div> |
| 73 | + </div> |
| 74 | + <div class="arrow-cell" style="grid-column: 3; grid-row: 2;"> |
| 75 | + <div class="arrow-head"></div> |
| 76 | + <div style="flex: 1" class="arrow-v"></div> |
| 77 | + <code class="arrow-label">impl <T: AttributeValue + PositionalValue> AttributePositional for T</code> |
| 78 | + <div style="flex: 1" class="arrow-v"></div> |
| 79 | + </div> |
| 80 | + <div style="grid-column: 2 / 4; grid-row: 2; position: relative;"> |
| 81 | + <div class="arrow-v" style="left: calc(50% - 1.5em); bottom: 0; height: 50%; position: absolute;"> </div> |
| 82 | + <div class="arrow-h" style="left: calc(50% - 1.5em); bottom: 50%; width: 3em; position: absolute;"> </div> |
| 83 | + </div> |
| 84 | + <div class="arrow-cell"> |
| 85 | + <div style="height: 4em; margin-top: -1em;" class="arrow-v"></div> |
| 86 | + <div class="arrow-h" style="margin-left: 50%; width: 50%;"></div> |
| 87 | + </div> |
| 88 | + <div class="node"> |
| 89 | + <h3><a href="trait.AttributeValue.html"><code>AttributeValue</code></a></h3> |
| 90 | + Any attribute that has the concept of a value, e.g., <code>"positional"</code>, <code>meta(<value>)</code>, <code>key = <value></code>. |
| 91 | + </div> |
| 92 | + <div class="node"> |
| 93 | + <h3><a href="trait.PositionalValue.html"><code>PositionalValue</code></a></h3> |
| 94 | + Empty marker trait, defining which <code>AttributeValue</code> implement <code>AttributePositional</code>. |
| 95 | + </div> |
| 96 | + <div class="arrow-cell" style="grid-column: 2;"> |
| 97 | + <div class="arrow-head"></div> |
| 98 | + <div style="flex: 1" class="arrow-v"></div> |
| 99 | + <code class="arrow-label">impl <T: AttributeMeta> AttributeValue for T</code> |
| 100 | + <div style="flex: 1" class="arrow-v"></div> |
| 101 | + </div> |
| 102 | + <div class="node" style="grid-column: 2;"> |
| 103 | + <h3><a href="trait.AttributeMeta.html"><code>AttributeMeta</code></a></h3> |
| 104 | + <p>Values in function or meta style attributes, i.e., <code>meta(<value>).</code></p> |
| 105 | + </div> |
| 106 | +</div> |
0 commit comments