pub struct ExecutableAstWriter {
pub values: ValueWriter,
/* private fields */
}
Fields§
§values: ValueWriter
Implementations§
Source§impl ExecutableAstWriter
impl ExecutableAstWriter
pub fn new() -> Self
pub fn finish(self) -> ExecutableDocument
pub fn operation_definition( &mut self, definition: OperationDefinitionRecord, ) -> ExecutableDefinitionId
pub fn fragment_definition( &mut self, definition: FragmentDefinitionRecord, ) -> ExecutableDefinitionId
pub fn variable_definition( &mut self, record: VariableDefinitionRecord, ) -> VariableDefinitionId
pub fn variable_definition_range( &mut self, expected_count: Option<usize>, ) -> IdRange<VariableDefinitionId>
pub fn type_reference(&mut self, ty: TypeRecord) -> TypeId
pub fn selection_set( &mut self, selection_set: Vec<SelectionRecord>, ) -> IdRange<SelectionId>
pub fn field_selection( &mut self, record: FieldSelectionRecord, ) -> FieldSelectionId
pub fn fragment_spread( &mut self, record: FragmentSpreadRecord, ) -> FragmentSpreadId
pub fn inline_fragment( &mut self, record: InlineFragmentRecord, ) -> InlineFragmentId
pub fn arguments(&mut self, records: Vec<ArgumentRecord>) -> IdRange<ArgumentId>
pub fn directive(&mut self, directive: DirectiveRecord) -> DirectiveId
pub fn directive_range( &mut self, expected_count: Option<usize>, ) -> IdRange<DirectiveId>
pub fn block_string(&mut self, string: &str) -> BlockStringLiteralId
pub fn ident(&mut self, ident: &str) -> StringId
pub fn intern_string(&mut self, string: &str) -> StringId
pub fn intern_owned_string(&mut self, string: String) -> StringId
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutableAstWriter
impl RefUnwindSafe for ExecutableAstWriter
impl Send for ExecutableAstWriter
impl Sync for ExecutableAstWriter
impl Unpin for ExecutableAstWriter
impl UnwindSafe for ExecutableAstWriter
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