pub fn parse_number(&mut self) -> Result<f64> {
        // Strip off leading whitespaces.
        self.skip_spaces();

        let start = self.pos();

        if self.at_end() {
            return Err(Error::InvalidNumber(self.calc_char_pos_at(start)));
        }

        self.parse_number_impl().map_err(|_| Error::InvalidNumber(self.calc_char_pos_at(start)))
    }
/// Parses number from the stream.
///
/// This method will detect a number length and then
/// will pass a substring to the `f64::from_str` method.
///
/// <https://www.w3.org/TR/SVG11/types.html#DataTypeNumber>
///
/// # Errors
///
/// Returns only `InvalidNumber`.
///
/// # Examples
///
/// ```
/// use svgtypes::Stream;
///
/// let mut s = Stream::from("3.14");
/// assert_eq!(s.parse_number().unwrap(), 3.14);
/// assert_eq!(s.at_end(), true);
/// ```
Parses number from the stream.
This method will detect a number length and then
will pass a substring to the `f64::from_str` method.


Parses number from the stream . This method will detect a number length and then will pass a substring to the ` f64 :: from_str ` method .
pub fn parse_number(&mut self) -> Result<f64> {
        // Strip off leading whitespaces.
        self.skip_spaces();
        let start = self.pos();
        if self.at_end() {
            return Err(Error::InvalidNumber(self.calc_char_pos_at(start)));
        }
        self.parse_number_impl().map_err(|_| Error::InvalidNumber(self.calc_char_pos_at(start)))
    }
pub fn parse_number ( & mut self ) -> Result < f64 > { // Strip off leading whitespaces. self . skip_spaces ( ) ; let start = self . pos ( ) ; if self . at_end ( ) { return Err ( Error :: InvalidNumber ( self . calc_char_pos_at ( start ) ) ) ; } self . parse_number_impl ( ) . map_err ( | _ | Error :: InvalidNumber ( self . calc_char_pos_at ( start ) ) ) }
Parses number from the stream.
Parses number from the stream .
&mut self
errors
Returns only `InvalidNumber`.
Returns only ` InvalidNumber ` .
examples
```
use svgtypes::Stream.


` ` ` use svgtypes :: Stream .