#[non_exhaustive]pub struct UseDecl {
pub module: String,
pub args: Vec<String>,
pub has_filter_risk: bool,
}Expand description
Use declaration HIR payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.module: StringModule or pragma name.
args: Vec<String>Parsed import arguments.
has_filter_risk: boolWhether the parser classified the module as a source-filter risk.
Trait Implementations§
impl Eq for UseDecl
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