Attempt to parse a single command line parameter from a slice of bytes. Returns `Some(Parameter)`, or `None` if a Parameter could not be constructed from the input. This occurs when the input is either empty or contains only whitespace. If the input contains multiple parameters, only the first one is parsed and the rest is discarded.
(input: &'a T)
| 474 | /// If the input contains multiple parameters, only the first one |
| 475 | /// is parsed and the rest is discarded. |
| 476 | pub fn parse<T: AsRef<[u8]> + ?Sized>(input: &'a T) -> Option<Self> { |
| 477 | CmdlineIterBytes(input.as_ref()) |
| 478 | .next() |
| 479 | .and_then(Self::parse_internal) |
| 480 | } |
| 481 | |
| 482 | /// Parse a parameter from a byte slice that contains exactly one parameter. |
| 483 | /// |
nothing calls this directly
no test coverage detected