fn check_next_byte(byte: u8) -> Result<u8, DataError> {
        match byte {
            b'=' => ParsingTsmFieldKey {
                description: "invalid unescaped '='",
            }
            .fail(),
            // An unescaped space is an invalid tag value.
            b' ' => ParsingTsmFieldKey {
                description: "invalid unescaped ' '",
            }
            .fail(),
            b',' => ParsingTsmFieldKey {
                description: "invalid unescaped ','",
            }
            .fail(),
            _ => Ok(byte),
        }
    }
// return the next byte if its value is not a valid unless escaped
return the next byte if its value is not a valid unless escaped
return the next byte if its value is not a valid unless escaped
fn check_next_byte(byte: u8) -> Result<u8, DataError> {
        match byte {
            b'=' => ParsingTsmFieldKey {
                description: "invalid unescaped '='",
            }
            .fail(),
            // An unescaped space is an invalid tag value.
            b' ' => ParsingTsmFieldKey {
                description: "invalid unescaped ' '",
            }
            .fail(),
            b',' => ParsingTsmFieldKey {
                description: "invalid unescaped ','",
            }
            .fail(),
            _ => Ok(byte),
        }
    }
fn check_next_byte ( byte : u8 ) -> Result < u8 , DataError > { match byte { b'=' => ParsingTsmFieldKey { description : " " , } . fail ( ) , // An unescaped space is an invalid tag value. b' ' => ParsingTsmFieldKey { description : " " , } . fail ( ) , b',' => ParsingTsmFieldKey { description : " " , } . fail ( ) , _ => Ok ( byte ) , } }
return the next byte if its value is not a valid unless escaped
return the next byte if its value is not a valid unless escaped
byte
u8
byte
u8