Enum juniper::parser::Token [−][src]
pub enum Token<'a> {
Name(&'a str),
Int(i32),
Float(f64),
String(String),
ExclamationMark,
Dollar,
ParenOpen,
ParenClose,
BracketOpen,
BracketClose,
CurlyOpen,
CurlyClose,
Ellipsis,
Colon,
Equals,
At,
Pipe,
EndOfFile,
}A single token in the input source
Variants
Name(&'a str)Int(i32)Float(f64)String(String)ExclamationMarkDollarParenOpenParenCloseBracketOpenBracketCloseCurlyOpenCurlyCloseEllipsisColonEqualsAtPipeEndOfFileTrait Implementations
impl<'a> Debug for Token<'a>[src]
impl<'a> Debug for Token<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> PartialEq for Token<'a>[src]
impl<'a> PartialEq for Token<'a>fn eq(&self, other: &Token<'a>) -> bool[src]
fn eq(&self, other: &Token<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Token<'a>) -> bool[src]
fn ne(&self, other: &Token<'a>) -> boolThis method tests for !=.
impl<'a> Display for Token<'a>[src]
impl<'a> Display for Token<'a>