pub struct TypedNodeList<'a, G: TypedGrammar, T> { /* private fields */ }Expand description
Typed read-only view over a list node in the arena.
Used throughout generated AST APIs for child collections.
Implementations§
Source§impl<G: TypedGrammar, T> TypedNodeList<'_, G, T>
impl<G: TypedGrammar, T> TypedNodeList<'_, G, T>
Source§impl<'a, G: TypedGrammar, T: GrammarNodeType<'a>> TypedNodeList<'a, G, T>
impl<'a, G: TypedGrammar, T: GrammarNodeType<'a>> TypedNodeList<'a, G, T>
Trait Implementations§
Source§impl<'a, G: Clone + TypedGrammar, T: Clone> Clone for TypedNodeList<'a, G, T>
impl<'a, G: Clone + TypedGrammar, T: Clone> Clone for TypedNodeList<'a, G, T>
Source§fn clone(&self) -> TypedNodeList<'a, G, T>
fn clone(&self) -> TypedNodeList<'a, G, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<G: TypedGrammar, T> Debug for TypedNodeList<'_, G, T>
impl<G: TypedGrammar, T> Debug for TypedNodeList<'_, G, T>
Source§impl<'a> From<TypedNodeList<'a, Grammar, CaseWhen<'a>>> for CaseWhenListId
impl<'a> From<TypedNodeList<'a, Grammar, CaseWhen<'a>>> for CaseWhenListId
Source§fn from(n: CaseWhenList<'a>) -> Self
fn from(n: CaseWhenList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, ColumnConstraint<'a>>> for ColumnConstraintListId
impl<'a> From<TypedNodeList<'a, Grammar, ColumnConstraint<'a>>> for ColumnConstraintListId
Source§fn from(n: ColumnConstraintList<'a>) -> Self
fn from(n: ColumnConstraintList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, ColumnDef<'a>>> for ColumnDefListId
impl<'a> From<TypedNodeList<'a, Grammar, ColumnDef<'a>>> for ColumnDefListId
Source§fn from(n: ColumnDefList<'a>) -> Self
fn from(n: ColumnDefList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, CteDefinition<'a>>> for CteListId
impl<'a> From<TypedNodeList<'a, Grammar, CteDefinition<'a>>> for CteListId
Source§impl<'a> From<TypedNodeList<'a, Grammar, Expr<'a>>> for ExprListId
impl<'a> From<TypedNodeList<'a, Grammar, Expr<'a>>> for ExprListId
Source§impl<'a> From<TypedNodeList<'a, Grammar, NamedWindowDef<'a>>> for NamedWindowDefListId
impl<'a> From<TypedNodeList<'a, Grammar, NamedWindowDef<'a>>> for NamedWindowDefListId
Source§fn from(n: NamedWindowDefList<'a>) -> Self
fn from(n: NamedWindowDefList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, OrderingTerm<'a>>> for OrderByListId
impl<'a> From<TypedNodeList<'a, Grammar, OrderingTerm<'a>>> for OrderByListId
Source§fn from(n: OrderByList<'a>) -> Self
fn from(n: OrderByList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, ResultColumn<'a>>> for ResultColumnListId
impl<'a> From<TypedNodeList<'a, Grammar, ResultColumn<'a>>> for ResultColumnListId
Source§fn from(n: ResultColumnList<'a>) -> Self
fn from(n: ResultColumnList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, SetClause<'a>>> for SetClauseListId
impl<'a> From<TypedNodeList<'a, Grammar, SetClause<'a>>> for SetClauseListId
Source§fn from(n: SetClauseList<'a>) -> Self
fn from(n: SetClauseList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, Stmt<'a>>> for TriggerCmdListId
impl<'a> From<TypedNodeList<'a, Grammar, Stmt<'a>>> for TriggerCmdListId
Source§fn from(n: TriggerCmdList<'a>) -> Self
fn from(n: TriggerCmdList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, TableConstraint<'a>>> for TableConstraintListId
impl<'a> From<TypedNodeList<'a, Grammar, TableConstraint<'a>>> for TableConstraintListId
Source§fn from(n: TableConstraintList<'a>) -> Self
fn from(n: TableConstraintList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, TypedNodeList<'a, Grammar, Expr<'a>>>> for ValuesRowListId
impl<'a> From<TypedNodeList<'a, Grammar, TypedNodeList<'a, Grammar, Expr<'a>>>> for ValuesRowListId
Source§fn from(n: ValuesRowList<'a>) -> Self
fn from(n: ValuesRowList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, UpsertClause<'a>>> for UpsertClauseListId
impl<'a> From<TypedNodeList<'a, Grammar, UpsertClause<'a>>> for UpsertClauseListId
Source§fn from(n: UpsertClauseList<'a>) -> Self
fn from(n: UpsertClauseList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypedNodeList<'a, Grammar, WindowDef<'a>>> for WindowDefListId
impl<'a> From<TypedNodeList<'a, Grammar, WindowDef<'a>>> for WindowDefListId
Source§fn from(n: WindowDefList<'a>) -> Self
fn from(n: WindowDefList<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a, G: TypedGrammar, T> GrammarNodeType<'a> for TypedNodeList<'a, G, T>
Blanket GrammarNodeType impl for TypedNodeList — resolves the ID as a list node.
impl<'a, G: TypedGrammar, T> GrammarNodeType<'a> for TypedNodeList<'a, G, T>
Blanket GrammarNodeType impl for TypedNodeList — resolves the ID as a list node.
Source§fn from_result(
stmt_result: &'a AnyParsedStatement<'a>,
id: AnyNodeId,
) -> Option<Self>
fn from_result( stmt_result: &'a AnyParsedStatement<'a>, id: AnyNodeId, ) -> Option<Self>
Resolve
id to Self, or None if null, invalid, or tag mismatch.impl<G: TypedGrammar, T: Clone> Copy for TypedNodeList<'_, G, T>
Auto Trait Implementations§
impl<'a, G, T> Freeze for TypedNodeList<'a, G, T>
impl<'a, G, T> !RefUnwindSafe for TypedNodeList<'a, G, T>
impl<'a, G, T> !Send for TypedNodeList<'a, G, T>
impl<'a, G, T> !Sync for TypedNodeList<'a, G, T>
impl<'a, G, T> Unpin for TypedNodeList<'a, G, T>
impl<'a, G, T> UnsafeUnpin for TypedNodeList<'a, G, T>
impl<'a, G, T> !UnwindSafe for TypedNodeList<'a, G, T>
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