aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorWedson Almeida Filho <[email protected]>2022-11-10 17:41:32 +0100
committerMiguel Ojeda <[email protected]>2022-12-04 01:59:15 +0100
commitfffed679eeea119c8f972954518c142ec95bda4a (patch)
tree5cbff8a0ad404cf53264298a928ae419b9076ea5 /include/linux/overflow.h
parentb18cb00e5a8a1182ef491b770ea1a3dab081dc5b (diff)
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 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions