pub struct UseDecl {
pub keyword_span: ExprSpan,
pub doc_comment: Option<String>,
pub path: Vec<(String, ExprSpan)>,
pub alias: Option<(String, ExprSpan)>,
pub span: ExprSpan,
}Expand description
Fields§
§keyword_span: ExprSpanThe use keyword’s span, excluding preceding documentation.
doc_comment: Option<String>Leading inner documentation, if present.
path: Vec<(String, ExprSpan)>Unresolved path segments and their individual spans.
alias: Option<(String, ExprSpan)>The optional local alias and its span.
span: ExprSpanThe whole import’s span.
Trait Implementations§
Auto Trait Implementations§
impl !Send for UseDecl
impl !Sync for UseDecl
impl Freeze for UseDecl
impl RefUnwindSafe 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