pub enum TopLevelSyntax<'a> {
Decl(DeclSyntax<'a>),
Use(&'a str),
}
Variants§
Decl(DeclSyntax<'a>)
Use(&'a str)
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 · 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>
Source§impl<'a> Parse<'a> for TopLevelSyntax<'a>
impl<'a> Parse<'a> for TopLevelSyntax<'a>
Source§impl<'a> PartialEq for TopLevelSyntax<'a>
impl<'a> PartialEq for TopLevelSyntax<'a>
impl<'a> Eq for TopLevelSyntax<'a>
impl<'a> StructuralPartialEq 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> 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