pub enum TopLevelItem {
Function(Function),
Variable(VariableDecl),
Pragma {
span: Span,
value: String,
},
File {
span: Span,
index: u32,
name: String,
timestamp: Option<u64>,
file_size: Option<u64>,
},
Alias {
span: Span,
alias: String,
target: String,
},
Section(SectionDirective),
}Variants§
Trait Implementations§
Source§impl Clone for TopLevelItem
impl Clone for TopLevelItem
Source§fn clone(&self) -> TopLevelItem
fn clone(&self) -> TopLevelItem
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 moreSource§impl Debug for TopLevelItem
impl Debug for TopLevelItem
Source§impl PartialEq for TopLevelItem
impl PartialEq for TopLevelItem
Source§fn eq(&self, other: &TopLevelItem) -> bool
fn eq(&self, other: &TopLevelItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TopLevelItem
Auto Trait Implementations§
impl Freeze for TopLevelItem
impl RefUnwindSafe for TopLevelItem
impl Send for TopLevelItem
impl Sync for TopLevelItem
impl Unpin for TopLevelItem
impl UnsafeUnpin for TopLevelItem
impl UnwindSafe for TopLevelItem
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