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]
pub fn is_i64(&self) -> bool[src]
Returns true if the integer can be represented as i64.
pub fn is_u64(&self) -> bool[src]
Returns true if the integer can be represented as u64.
pub fn as_i64(&self) -> Option<i64>[src]
Returns the integer represented as i64 if possible, or else None.
pub fn as_u64(&self) -> Option<u64>[src]
Returns the integer represented as u64 if possible, or else None.
pub fn as_f64(&self) -> Option<f64>[src]
Returns the integer represented as f64 if possible, or else None.
Trait Implementations
impl Copy for Integer[src]
impl PartialEq<Integer> for Integer[src]
fn eq(&self, __arg_0: &Integer) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Integer) -> bool[src]
This method tests for !=.
impl Clone for Integer[src]
fn clone(&self) -> Integer[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for Integer[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more