Struct graphql_parser::query::Number[][src]

pub struct Number(_);

This represents integer number

But since there is no definition on limit of number in spec (only in implemetation), we do a trick similar to the one in serde_json: encapsulate value in new-type, allowing type to be extended later.

Methods

impl Number
[src]

Returns a number as i64 if it fits the type

Trait Implementations

impl Debug for Number
[src]

Formats the value using the given formatter. Read more

impl Clone for Number
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Number
[src]

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

This method tests for !=.

impl From<i32> for Number
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Number

impl Sync for Number