pub enum Item<'src> {
Alias(Alias<'src, Name<'src>>),
Assignment(Assignment<'src>),
Comment(&'src str),
Import {
absolute: Option<PathBuf>,
optional: bool,
path: Token<'src>,
relative: StringLiteral<'src>,
},
Module {
attributes: BTreeSet<Attribute<'src>>,
absolute: Option<PathBuf>,
doc: Option<&'src str>,
name: Name<'src>,
optional: bool,
relative: Option<StringLiteral<'src>>,
},
Recipe(UnresolvedRecipe<'src>),
Set(Set<'src>),
Unexport {
name: Name<'src>,
},
}
Expand description
A single top-level item
Variantsยง
Alias(Alias<'src, Name<'src>>)
Assignment(Assignment<'src>)
Comment(&'src str)
Import
Module
Fields
ยง
relative: Option<StringLiteral<'src>>
Recipe(UnresolvedRecipe<'src>)
Set(Set<'src>)
Unexport
Trait Implementationsยง
Auto Trait Implementationsยง
impl<'src> Freeze for Item<'src>
impl<'src> RefUnwindSafe for Item<'src>
impl<'src> Send for Item<'src>
impl<'src> Sync for Item<'src>
impl<'src> Unpin for Item<'src>
impl<'src> UnwindSafe for Item<'src>
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