(&self, f: &mut fmt::Formatter)
| 131 | |
| 132 | impl fmt::Display for CallConv { |
| 133 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 134 | f.write_str(match *self { |
| 135 | Self::Fast => "fast", |
| 136 | Self::Tail => "tail", |
| 137 | Self::SystemV => "system_v", |
| 138 | Self::WindowsFastcall => "windows_fastcall", |
| 139 | Self::AppleAarch64 => "apple_aarch64", |
| 140 | Self::Probestack => "probestack", |
| 141 | Self::Winch => "winch", |
| 142 | Self::PreserveAll => "preserve_all", |
| 143 | }) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | impl str::FromStr for CallConv { |