pub struct UseItem {
pub name: Name,
pub alias: Option<Box<str>>,
pub kind: Option<UseKind>,
pub span: Span,
}Expand description
One imported name in a use declaration.
Fields§
§name: NameThe imported name.
alias: Option<Box<str>>Local alias from as.
kind: Option<UseKind>Per-item kind in a mixed group use.
span: SpanSource span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseItem
impl RefUnwindSafe for UseItem
impl Send for UseItem
impl Sync for UseItem
impl Unpin for UseItem
impl UnsafeUnpin for UseItem
impl UnwindSafe for UseItem
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