pub struct UseDecl {
pub path: Path,
pub alias: Option<Ident>,
pub span: Span,
}Expand description
use path; or use path as name; (spec 3.3): introduces a local alias
for whatever path names – a module, a struct, an enum, or a function
– resolved and checked by the compiler’s resolver, never the parser.
Fields§
§path: Path§alias: Option<Ident>§span: SpanTrait Implementations§
impl StructuralPartialEq for UseDecl
Auto Trait Implementations§
impl Freeze for UseDecl
impl RefUnwindSafe for UseDecl
impl Send for UseDecl
impl Sync for UseDecl
impl Unpin for UseDecl
impl UnsafeUnpin for UseDecl
impl UnwindSafe for UseDecl
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