pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(allocator: &'a Allocator, input: &'a str) -> Self
pub fn recursion_limit(self, recursion_limit: usize) -> Self
pub fn token_limit(self, token_limit: usize) -> Self
pub fn allow_executable_descriptions(self, allow: bool) -> Self
pub fn allow_legacy_fragment_variables(self, allow: bool) -> Self
pub fn parse(self) -> Ast<'a, Document<'a>>
pub fn parse_selection_set(self) -> Ast<'a, SelectionSet<'a>>
pub fn parse_type(self) -> Ast<'a, Type<'a>>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
impl<'a> Freeze for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more