#[non_exhaustive]pub struct ImportStep {
pub location: Location,
pub item: ItemBuf,
}
Expand description
A single step in an import.
This is used to indicate a step in an import chain in an error message.
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.location: Location
The location of the import.
item: ItemBuf
The item being imported.
Trait Implementations§
Source§impl Debug for ImportStep
impl Debug for ImportStep
Auto Trait Implementations§
impl Freeze for ImportStep
impl RefUnwindSafe for ImportStep
impl Send for ImportStep
impl Sync for ImportStep
impl Unpin for ImportStep
impl UnwindSafe for ImportStep
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