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 NumberTrait Implementations
impl Debug for Number[src]
impl Debug for Numberfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Number[src]
impl Clone for Numberfn clone(&self) -> Number[src]
fn clone(&self) -> NumberReturns 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 Numberfn eq(&self, other: &Number) -> bool[src]
fn eq(&self, other: &Number) -> boolThis 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) -> boolThis method tests for !=.
impl From<i32> for Number[src]
impl From<i32> for Number