pub enum TopLevelSyntax<'a> {
Decl(DeclSyntax<'a>),
Use(UseSyntax<'a>),
}Variants§
Decl(DeclSyntax<'a>)
Use(UseSyntax<'a>)
Trait Implementations§
Source§impl<'a> Clone for TopLevelSyntax<'a>
impl<'a> Clone for TopLevelSyntax<'a>
Source§fn clone(&self) -> TopLevelSyntax<'a>
fn clone(&self) -> TopLevelSyntax<'a>
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<'a> Debug for TopLevelSyntax<'a>
impl<'a> Debug for TopLevelSyntax<'a>
Auto Trait Implementations§
impl<'a> Freeze for TopLevelSyntax<'a>
impl<'a> RefUnwindSafe for TopLevelSyntax<'a>
impl<'a> Send for TopLevelSyntax<'a>
impl<'a> Sync for TopLevelSyntax<'a>
impl<'a> Unpin for TopLevelSyntax<'a>
impl<'a> UnsafeUnpin for TopLevelSyntax<'a>
impl<'a> UnwindSafe for TopLevelSyntax<'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