pub struct Import<'a> {
pub module: &'a str,
pub name: &'a str,
pub ty: EntityType,
}Expand description
An import item to be used with Imports::Single.
Fields§
§module: &'a strThe import’s module name.
name: &'a strThe import’s item name.
ty: EntityTypeThe import’s time.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Import<'a>
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> Send for Import<'a>
impl<'a> Sync for Import<'a>
impl<'a> Unpin for Import<'a>
impl<'a> UnwindSafe for Import<'a>
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