fn continue_to_end_of_line(&mut self) -> TokenizerResult {
        loop {
            match self.next_character() {
                Some(character) => match char_to_enum(&character) {
                    Character::Whitespace => continue,
                    Character::Value(';') => return self.ignore_comment_contents(),
                    value => {
                        return Err(format!(
                            "Unknown character encountered \"{:?}\".",
                            value
                        ))
                    }
                },
                None => {
                    return Ok(());
                }
            }
        }
    }
/// Run this method when the line is expected to contain nothing except whitespace
/// or a comment.
Run this method when the line is expected to contain nothing except whitespace
or a comment.
Run this method when the line is expected to contain nothing except whitespace or a comment .
fn continue_to_end_of_line(&mut self) -> TokenizerResult {
        loop {
            match self.next_character() {
                Some(character) => match char_to_enum(&character) {
                    Character::Whitespace => continue,
                    Character::Value(';') => return self.ignore_comment_contents(),
                    value => {
                        return Err(format!(
                            "Unknown character encountered \"{:?}\".",
                            value
                        ))
                    }
                },
                None => {
                    return Ok(());
                }
            }
        }
    }
fn continue_to_end_of_line ( & mut self ) -> TokenizerResult { loop { match self . next_character ( ) { Some ( character ) => match char_to_enum ( & character ) { Character :: Whitespace => continue , Character :: Value ( ';' ) => return self . ignore_comment_contents ( ) , value => { return Err ( format ! ( " \" \" " value ) ) } } , None => { return Ok ( ( ) ) ; } } } }
Run this method when the line is expected to contain nothing except whitespace
or a comment.
Run this method when the line is expected to contain nothing except whitespace or a comment .
&mut self
&mut self