pub enum PackageItem<'a> {
PackageOrGenerate(Box<PackageOrGenerateItemDeclaration<'a>>),
AnonymousProgram(Box<AnonymousProgram<'a>>),
PackageExport(Box<PackageExportDeclaration<'a>>),
Timeunits(Box<TimeunitsDeclaration<'a>>),
}Variants§
PackageOrGenerate(Box<PackageOrGenerateItemDeclaration<'a>>)
AnonymousProgram(Box<AnonymousProgram<'a>>)
PackageExport(Box<PackageExportDeclaration<'a>>)
Timeunits(Box<TimeunitsDeclaration<'a>>)
Implementations§
Source§impl<'a: 'b, 'b> PackageItem<'a>
impl<'a: 'b, 'b> PackageItem<'a>
Sourcepub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
pub fn iter(&'b self) -> NodeIter<'a, 'b> ⓘ
Iterate across the PackageItem and its children
Trait Implementations§
Source§impl<'a> Clone for PackageItem<'a>
impl<'a> Clone for PackageItem<'a>
Source§fn clone(&self) -> PackageItem<'a>
fn clone(&self) -> PackageItem<'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 PackageItem<'a>
impl<'a> Debug for PackageItem<'a>
Source§impl<'a: 'b, 'b> From<&'b PackageItem<'a>> for Node<'a, 'b>
impl<'a: 'b, 'b> From<&'b PackageItem<'a>> for Node<'a, 'b>
Source§fn from(value: &'b PackageItem<'a>) -> Self
fn from(value: &'b PackageItem<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a: 'b, 'b> IntoIterator for &'b PackageItem<'a>
impl<'a: 'b, 'b> IntoIterator for &'b PackageItem<'a>
Source§impl<'a: 'b, 'b> Nodes<'a, 'b> for PackageItem<'a>
impl<'a: 'b, 'b> Nodes<'a, 'b> for PackageItem<'a>
Source§impl<'a> PartialEq for PackageItem<'a>
impl<'a> PartialEq for PackageItem<'a>
impl<'a> StructuralPartialEq for PackageItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackageItem<'a>
impl<'a> RefUnwindSafe for PackageItem<'a>
impl<'a> Send for PackageItem<'a>
impl<'a> Sync for PackageItem<'a>
impl<'a> Unpin for PackageItem<'a>
impl<'a> UnsafeUnpin for PackageItem<'a>
impl<'a> UnwindSafe for PackageItem<'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