pub fn integer_value(&self) -> Result<isize, Error> {
        match self {
            &Value::Numeric(ref num, ..) if num.is_integer() => num
                .to_integer()
                .ok_or_else(|| Error::bad_value("an integer", self)),
            v => Err(Error::bad_value("a number", v)),
        }
    }
/// Check that this value is an integer.
Check that this value is an integer.
Check that this value is an integer .
pub fn integer_value(&self) -> Result<isize, Error> {
        match self {
            &Value::Numeric(ref num, ..) if num.is_integer() => num
                .to_integer()
                .ok_or_else(|| Error::bad_value("an integer", self)),
            v => Err(Error::bad_value("a number", v)),
        }
    }
pub fn integer_value ( & self ) -> Result < isize , Error > { match self { & Value :: Numeric ( ref num , .. ) if num . is_integer ( ) => num . to_integer ( ) . ok_or_else ( | | Error :: bad_value ( " " , self ) ) , v => Err ( Error :: bad_value ( " " , v ) ) , } }
Check that this value is an integer.
Check that this value is an integer .
&self
&self