diff options
| author | Wedson Almeida Filho <[email protected]> | 2022-11-10 16:41:32 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2022-12-04 00:59:15 +0000 |
| commit | fffed679eeea119c8f972954518c142ec95bda4a (patch) | |
| tree | 5cbff8a0ad404cf53264298a928ae419b9076ea5 /scripts/generate_rust_analyzer.py | |
| parent | rust: str: add `c_str!` macro (diff) | |
| download | kernel-fffed679eeea119c8f972954518c142ec95bda4a.tar.gz kernel-fffed679eeea119c8f972954518c142ec95bda4a.zip | |
rust: str: add `Formatter` type
Add the `Formatter` type, which leverages `RawFormatter`,
but fails if callers attempt to write more than will fit
in the buffer.
In order to so, implement the `RawFormatter::from_buffer()`
constructor as well.
Co-developed-by: Adam Bratschi-Kaye <[email protected]>
Signed-off-by: Adam Bratschi-Kaye <[email protected]>
Signed-off-by: Wedson Almeida Filho <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
