pub enum AstNodeRef<'a, 'ast> {
Attribute(&'a Attribute<'ast>),
GenericType(&'a GenericType<'ast>),
GenericTypePack(&'a GenericTypePack<'ast>),
Statement(Statement<'ast>),
Expression(Expression<'ast>),
Type(Type<'ast>),
TypePack(TypePack<'ast>),
}Variants§
Attribute(&'a Attribute<'ast>)
GenericType(&'a GenericType<'ast>)
GenericTypePack(&'a GenericTypePack<'ast>)
Statement(Statement<'ast>)
Expression(Expression<'ast>)
Type(Type<'ast>)
TypePack(TypePack<'ast>)
Trait Implementations§
Source§impl<'a, 'ast> Clone for AstNodeRef<'a, 'ast>
impl<'a, 'ast> Clone for AstNodeRef<'a, 'ast>
Source§fn clone(&self) -> AstNodeRef<'a, 'ast>
fn clone(&self) -> AstNodeRef<'a, 'ast>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, 'ast> Copy for AstNodeRef<'a, 'ast>
Source§impl<'a, 'ast> Debug for AstNodeRef<'a, 'ast>
impl<'a, 'ast> Debug for AstNodeRef<'a, 'ast>
Source§impl<'a, 'ast> PartialEq for AstNodeRef<'a, 'ast>
impl<'a, 'ast> PartialEq for AstNodeRef<'a, 'ast>
impl<'a, 'ast> StructuralPartialEq for AstNodeRef<'a, 'ast>
Auto Trait Implementations§
impl<'a, 'ast> !Send for AstNodeRef<'a, 'ast>
impl<'a, 'ast> !Sync for AstNodeRef<'a, 'ast>
impl<'a, 'ast> Freeze for AstNodeRef<'a, 'ast>
impl<'a, 'ast> RefUnwindSafe for AstNodeRef<'a, 'ast>
impl<'a, 'ast> Unpin for AstNodeRef<'a, 'ast>
impl<'a, 'ast> UnsafeUnpin for AstNodeRef<'a, 'ast>
impl<'a, 'ast> UnwindSafe for AstNodeRef<'a, 'ast>
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