pub fn parse_name_value(name: &str, value: &[u8]) -> Result<Self, String> {
		for candidate in OPTIONS {
			if name.eq_ignore_ascii_case(candidate.name) {
				return Self::parse_value(*candidate, value)
			}
		}

		Err(format!("unknown option: {}", name))
	}
/// Parse an option from the name and value.
///
/// The name will be lookup up in the global OPTIONS list to retrieve the required metadata.
Parse an option from the name and value.
The name will be lookup up in the global OPTIONS list to retrieve the required metadata.
Parse an option from the name and value . The name will be lookup up in the global OPTIONS list to retrieve the required metadata .
pub fn parse_name_value(name: &str, value: &[u8]) -> Result<Self, String> {
		for candidate in OPTIONS {
			if name.eq_ignore_ascii_case(candidate.name) {
				return Self::parse_value(*candidate, value)
			}
		}
		Err(format!("unknown option: {}", name))
	}
pub fn parse_name_value ( name : & str , value : & [ u8 ] ) -> Result < Self , String > { for candidate in OPTIONS { if name . eq_ignore_ascii_case ( candidate . name ) { return Self :: parse_value ( * candidate , value ) } } Err ( format ! ( " " name ) ) }
Parse an option from the name and value.
Parse an option from the name and value .
name
&str
value
&[u8]
name
&str
value
&[u8]