pub struct UseDecl<'input> {
pub package: Loc<Package<'input>>,
pub range: Option<Loc<String>>,
pub alias: Option<Loc<Cow<'input, str>>>,
pub endl: Option<Span>,
}
Expand description
A use declaration
ⓘ
use <package> "<range>" as <alias>;
Fields§
§package: Loc<Package<'input>>
§range: Option<Loc<String>>
§alias: Option<Loc<Cow<'input, str>>>
§endl: Option<Span>
If the end-of-line indicator present. A empty value should indicate an error.
Trait Implementations§
impl<'input> Eq for UseDecl<'input>
impl<'input> StructuralPartialEq for UseDecl<'input>
Auto Trait Implementations§
impl<'input> Freeze for UseDecl<'input>
impl<'input> RefUnwindSafe for UseDecl<'input>
impl<'input> Send for UseDecl<'input>
impl<'input> Sync for UseDecl<'input>
impl<'input> Unpin for UseDecl<'input>
impl<'input> UnwindSafe for UseDecl<'input>
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