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]
impl Number
Trait Implementations
impl Debug for Number
[src]
impl Debug for Number
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Number
[src]
impl Clone for Number
fn clone(&self) -> Number
[src]
fn clone(&self) -> Number
Returns 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 PartialEq for Number
[src]
impl PartialEq for Number
fn eq(&self, other: &Number) -> bool
[src]
fn eq(&self, other: &Number) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Number) -> bool
[src]
fn ne(&self, other: &Number) -> bool
This method tests for !=
.
impl From<i32> for Number
[src]
impl From<i32> for Number