pub fn from_str(input: &str) -> Result<Self, read::Error> {
        match read::hltas(input) {
            Ok((_, hltas)) => Ok(hltas),
            Err(nom::Err::Error(mut e)) | Err(nom::Err::Failure(mut e)) => {
                // Set the whole input to get correct line and column numbers in the error message.
                e.whole_input = input;
                Err(e)
            }
            Err(nom::Err::Incomplete(_)) => unreachable!(), // We don't use streaming parsers.
        }
    }
// FromStr does not allow borrowing from the &str.
FromStr does not allow borrowing from the &str.
FromStr does not allow borrowing from the &str .
pub fn from_str(input: &str) -> Result<Self, read::Error> {
        match read::hltas(input) {
            Ok((_, hltas)) => Ok(hltas),
            Err(nom::Err::Error(mut e)) | Err(nom::Err::Failure(mut e)) => {
                // Set the whole input to get correct line and column numbers in the error message.
                e.whole_input = input;
                Err(e)
            }
            Err(nom::Err::Incomplete(_)) => unreachable!(), // We don't use streaming parsers.
        }
    }
pub fn from_str ( input : & str ) -> Result < Self , read :: Error > { match read :: hltas ( input ) { Ok ( ( _ , hltas ) ) => Ok ( hltas ) , Err ( nom :: Err :: Error ( mut e ) ) | Err ( nom :: Err :: Failure ( mut e ) ) => { // Set the whole input to get correct line and column numbers in the error message. e . whole_input = input ; Err ( e ) } Err ( nom :: Err :: Incomplete ( _ ) ) => unreachable ! ( ) , // We don't use streaming parsers. } }
FromStr does not allow borrowing from the &str.
FromStr does not allow borrowing from the &str .
input
&str
input
&str