Struct rmp_rpc::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]

[src]

Returns true if the integer can be represented as i64.

[src]

Returns true if the integer can be represented as u64.

[src]

Returns the integer represented as i64 if possible, or else None.

[src]

Returns the integer represented as u64 if possible, or else None.

[src]

Returns the integer represented as f64 if possible, or else None.

Trait Implementations

impl Copy for Integer
[src]

impl Clone for Integer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<u16> for Integer
[src]

[src]

Performs the conversion.

impl From<u8> for Integer
[src]

[src]

Performs the conversion.

impl From<usize> for Integer
[src]

[src]

Performs the conversion.

impl From<i32> for Integer
[src]

[src]

Performs the conversion.

impl From<u64> for Integer
[src]

[src]

Performs the conversion.

impl From<isize> for Integer
[src]

[src]

Performs the conversion.

impl From<u32> for Integer
[src]

[src]

Performs the conversion.

impl From<i64> for Integer
[src]

[src]

Performs the conversion.

impl From<i16> for Integer
[src]

[src]

Performs the conversion.

impl From<i8> for Integer
[src]

[src]

Performs the conversion.

impl PartialEq<Integer> for Integer
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Integer
[src]

[src]

Formats the value using the given formatter.

impl Display for Integer
[src]

[src]

Formats the value using the given formatter. Read more