Struct neovim_lib::Integer [−][src]
pub struct Integer { /* fields omitted */ }Represents a MessagePack integer, whether signed or unsigned.
A Value or ValueRef that contains integer can be constructed using From trait.
Methods
impl Integer[src]
impl Integerpub fn is_i64(&self) -> bool[src]
pub fn is_i64(&self) -> boolReturns true if the integer can be represented as i64.
pub fn is_u64(&self) -> bool[src]
pub fn is_u64(&self) -> boolReturns true if the integer can be represented as u64.
pub fn as_i64(&self) -> Option<i64>[src]
pub fn as_i64(&self) -> Option<i64>Returns the integer represented as i64 if possible, or else None.
pub fn as_u64(&self) -> Option<u64>[src]
pub fn as_u64(&self) -> Option<u64>Returns the integer represented as u64 if possible, or else None.
pub fn as_f64(&self) -> Option<f64>[src]
pub fn as_f64(&self) -> Option<f64>Returns the integer represented as f64 if possible, or else None.
Trait Implementations
impl Clone for Integer[src]
impl Clone for Integerfn clone(&self) -> Integer[src]
fn clone(&self) -> IntegerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Integer[src]
impl Debug for Integerfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl From<u32> for Integer[src]
impl From<u32> for Integerimpl From<usize> for Integer[src]
impl From<usize> for Integerimpl From<i8> for Integer[src]
impl From<i8> for Integerimpl From<u8> for Integer[src]
impl From<u8> for Integerimpl From<i16> for Integer[src]
impl From<i16> for Integerimpl From<u16> for Integer[src]
impl From<u16> for Integerimpl From<u64> for Integer[src]
impl From<u64> for Integerimpl From<isize> for Integer[src]
impl From<isize> for Integerimpl From<i32> for Integer[src]
impl From<i32> for Integerimpl From<i64> for Integer[src]
impl From<i64> for Integerimpl Display for Integer[src]
impl Display for Integerfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Integer[src]
impl Copy for Integerimpl PartialEq<Integer> for Integer[src]
impl PartialEq<Integer> for Integer