pub struct UseDecl {
pub attrs: Vec<Attribute>,
pub is_pub: bool,
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.
pub use path; (milestone 5b3 spec 2.5) also re-exports the item.
Fields§
§attrs: Vec<Attribute>§is_pub: bool§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