pub struct TypeSystemAstWriter { /* private fields */ }
Implementations§
Source§impl TypeSystemAstWriter
impl TypeSystemAstWriter
pub fn new() -> Self
pub fn update(ast: TypeSystemDocument) -> Self
pub fn finish(self) -> TypeSystemDocument
pub fn store_description( &mut self, definition: DefinitionId, description: Option<DescriptionId>, )
pub fn description(&mut self, description: DescriptionRecord) -> DescriptionId
pub fn schema_definition( &mut self, definition: SchemaDefinitionRecord, ) -> DefinitionId
pub fn root_operation_definitions( &mut self, definitions: Vec<RootOperationTypeDefinitionRecord>, ) -> IdRange<RootOperationTypeDefinitionId>
pub fn scalar_definition( &mut self, definition: ScalarDefinitionRecord, ) -> DefinitionId
pub fn object_definition( &mut self, definition: ObjectDefinitionRecord, ) -> DefinitionId
pub fn field_definition( &mut self, definition: FieldDefinitionRecord, ) -> FieldDefinitionId
pub fn field_definition_range( &mut self, expected_count: Option<usize>, ) -> IdRange<FieldDefinitionId>
pub fn interface_definition( &mut self, definition: InterfaceDefinitionRecord, ) -> DefinitionId
pub fn union_definition( &mut self, definition: UnionDefinitionRecord, ) -> DefinitionId
pub fn enum_definition( &mut self, definition: EnumDefinitionRecord, ) -> DefinitionId
pub fn enum_value_definition( &mut self, definition: EnumValueDefinitionRecord, ) -> EnumValueDefinitionId
pub fn enum_value_definition_range( &mut self, expected_count: Option<usize>, ) -> IdRange<EnumValueDefinitionId>
pub fn input_object_definition( &mut self, definition: InputObjectDefinitionRecord, ) -> DefinitionId
pub fn input_value_definition( &mut self, definition: InputValueDefinitionRecord, ) -> InputValueDefinitionId
pub fn input_value_definition_range( &mut self, expected_count: Option<usize>, ) -> IdRange<InputValueDefinitionId>
pub fn schema_extension( &mut self, definition: SchemaDefinitionRecord, ) -> DefinitionId
pub fn scalar_extension( &mut self, definition: ScalarDefinitionRecord, ) -> DefinitionId
pub fn object_extension( &mut self, definition: ObjectDefinitionRecord, ) -> DefinitionId
pub fn interface_extension( &mut self, definition: InterfaceDefinitionRecord, ) -> DefinitionId
pub fn union_member(&mut self, member: UnionMemberRecord) -> UnionMemberId
pub fn union_member_range( &mut self, expected_count: Option<usize>, ) -> IdRange<UnionMemberId>
pub fn union_extension( &mut self, definition: UnionDefinitionRecord, ) -> DefinitionId
pub fn enum_extension( &mut self, definition: EnumDefinitionRecord, ) -> DefinitionId
pub fn input_object_extension( &mut self, definition: InputObjectDefinitionRecord, ) -> DefinitionId
pub fn directive_definition( &mut self, definition: DirectiveDefinitionRecord, ) -> DefinitionId
pub fn directive_range( &mut self, expected_count: Option<usize>, ) -> IdRange<DirectiveId>
pub fn type_reference(&mut self, ty: TypeRecord) -> TypeId
pub fn directive(&mut self, directive: DirectiveRecord) -> DirectiveId
pub fn argument(&mut self, argument: ArgumentRecord) -> ArgumentId
pub fn argument_range( &mut self, expected_count: Option<usize>, ) -> IdRange<ArgumentId>
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 TypeSystemAstWriter
impl RefUnwindSafe for TypeSystemAstWriter
impl Send for TypeSystemAstWriter
impl Sync for TypeSystemAstWriter
impl Unpin for TypeSystemAstWriter
impl UnwindSafe for TypeSystemAstWriter
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