pub struct UseDecl {
pub module_path: Vec<String>,
pub imports: Option<Vec<String>>,
}Expand description
Import statement: use module. or use module::{pred1, pred2}.
Fields§
§module_path: Vec<String>Module path segments, e.g., [“utils”, “math”]
imports: Option<Vec<String>>Specific imports (None = import all public)
Trait 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