Struct partiql_ast::ast::AstNode
source · pub struct AstNode<T> {
pub id: NodeId,
pub node: T,
}
Expand description
Represents an AST node.
Fields§
§id: NodeId
§node: T
Trait Implementations§
source§impl<T: PartialEq> PartialEq<AstNode<T>> for AstNode<T>
impl<T: PartialEq> PartialEq<AstNode<T>> for AstNode<T>
impl<T: Eq> Eq for AstNode<T>
impl<T> StructuralEq for AstNode<T>
impl<T> StructuralPartialEq for AstNode<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AstNode<T>where T: RefUnwindSafe,
impl<T> Send for AstNode<T>where T: Send,
impl<T> Sync for AstNode<T>where T: Sync,
impl<T> Unpin for AstNode<T>where T: Unpin,
impl<T> UnwindSafe for AstNode<T>where T: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.