Struct cynic_parser::executable::writer::ExecutableAstWriter

source ·
pub struct ExecutableAstWriter { /* private fields */ }

Implementations§

source§

impl ExecutableAstWriter

source

pub fn new() -> Self

source

pub fn finish(self) -> ExecutableDocument

source

pub fn operation_definition( &mut self, definition: OperationDefinitionRecord, ) -> ExecutableDefinitionId

source

pub fn fragment_definition( &mut self, definition: FragmentDefinitionRecord, ) -> ExecutableDefinitionId

source

pub fn variable_definition( &mut self, record: VariableDefinitionRecord, ) -> VariableDefinitionId

source

pub fn variable_definition_range( &mut self, expected_count: Option<usize>, ) -> IdRange<VariableDefinitionId>

source

pub fn type_reference(&mut self, ty: TypeRecord) -> TypeId

source

pub fn selection_set( &mut self, selection_set: Vec<SelectionRecord>, ) -> IdRange<SelectionId>

source

pub fn field_selection( &mut self, record: FieldSelectionRecord, ) -> FieldSelectionId

source

pub fn fragment_spread( &mut self, record: FragmentSpreadRecord, ) -> FragmentSpreadId

source

pub fn inline_fragment( &mut self, record: InlineFragmentRecord, ) -> InlineFragmentId

source

pub fn arguments(&mut self, records: Vec<ArgumentRecord>) -> IdRange<ArgumentId>

source

pub fn directive(&mut self, directive: DirectiveRecord) -> DirectiveId

source

pub fn directive_range( &mut self, expected_count: Option<usize>, ) -> IdRange<DirectiveId>

source

pub fn value(&mut self, record: ValueRecord) -> ValueId

source

pub fn block_string(&mut self, string: &str) -> BlockStringLiteralId

source

pub fn ident(&mut self, ident: &str) -> StringId

source

pub fn intern_string(&mut self, string: &str) -> StringId

source

pub fn intern_owned_string(&mut self, string: String) -> StringId

Trait Implementations§

source§

impl Default for ExecutableAstWriter

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.