Document `Padded`

This commit is contained in:
Zanie 2024-01-09 18:34:26 -06:00
parent 17901f6438
commit 36d79dbcc2
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,8 @@ impl PackageRange<'_> {
} }
} }
/// Inserts the given padding on the left and right sides of the content if
/// the content does not start and end with whitespace respectively.
#[derive(Debug)] #[derive(Debug)]
struct Padded<'a, T: std::fmt::Display> { struct Padded<'a, T: std::fmt::Display> {
left: &'a str, left: &'a str,