Creates a new `Cmdline` from any type that can be referenced as bytes. Uses borrowed data when possible to avoid unnecessary allocations.
(input: &'a T)
| 28 | /// |
| 29 | /// Uses borrowed data when possible to avoid unnecessary allocations. |
| 30 | fn from(input: &'a T) -> Self { |
| 31 | Self(Cow::Borrowed(input.as_ref())) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | impl Deref for Cmdline<'_> { |