pub enum ProgramDeclaration<'a> {
Nonansi(Box<ProgramDeclarationNonansi<'a>>),
Ansi(Box<ProgramDeclarationAnsi<'a>>),
Wildcard(Box<ProgramDeclarationWildcard<'a>>),
ExternNonansi(Box<ProgramDeclarationExternNonansi<'a>>),
ExternAnsi(Box<ProgramDeclarationExternAnsi<'a>>),
}Variants§
Nonansi(Box<ProgramDeclarationNonansi<'a>>)
Ansi(Box<ProgramDeclarationAnsi<'a>>)
Wildcard(Box<ProgramDeclarationWildcard<'a>>)
ExternNonansi(Box<ProgramDeclarationExternNonansi<'a>>)
ExternAnsi(Box<ProgramDeclarationExternAnsi<'a>>)
Implementations§
Source§impl<'a: 'b, 'b> ProgramDeclaration<'a>
impl<'a: 'b, 'b> ProgramDeclaration<'a>
Sourcepub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
pub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
Iterate across the ProgramDeclaration and its children
Trait Implementations§
Source§impl<'a> Clone for ProgramDeclaration<'a>
impl<'a> Clone for ProgramDeclaration<'a>
Source§fn clone(&self) -> ProgramDeclaration<'a>
fn clone(&self) -> ProgramDeclaration<'a>
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<'a> Debug for ProgramDeclaration<'a>
impl<'a> Debug for ProgramDeclaration<'a>
Source§impl<'a: 'b, 'b> From<&'b ProgramDeclaration<'a>> for Node<'a, 'b>
impl<'a: 'b, 'b> From<&'b ProgramDeclaration<'a>> for Node<'a, 'b>
Source§fn from(value: &'b ProgramDeclaration<'a>) -> Self
fn from(value: &'b ProgramDeclaration<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a: 'b, 'b> IntoIterator for &'b ProgramDeclaration<'a>
impl<'a: 'b, 'b> IntoIterator for &'b ProgramDeclaration<'a>
Source§impl<'a: 'b, 'b> Nodes<'a, 'b> for ProgramDeclaration<'a>
impl<'a: 'b, 'b> Nodes<'a, 'b> for ProgramDeclaration<'a>
Source§impl<'a> PartialEq for ProgramDeclaration<'a>
impl<'a> PartialEq for ProgramDeclaration<'a>
impl<'a> StructuralPartialEq for ProgramDeclaration<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProgramDeclaration<'a>
impl<'a> RefUnwindSafe for ProgramDeclaration<'a>
impl<'a> Send for ProgramDeclaration<'a>
impl<'a> Sync for ProgramDeclaration<'a>
impl<'a> Unpin for ProgramDeclaration<'a>
impl<'a> UnsafeUnpin for ProgramDeclaration<'a>
impl<'a> UnwindSafe for ProgramDeclaration<'a>
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