pub struct ImportItem {
pub name: String,
pub alias: Option<String>,
}
Fields§
§name: String
This might not conform to standard ident rules for the language, so its a string, not an ident.
alias: Option<String>
Implementations§
Trait Implementations§
Source§impl From<&String> for ImportItem
impl From<&String> for ImportItem
Source§impl From<&str> for ImportItem
impl From<&str> for ImportItem
Source§impl From<Ident> for ImportItem
impl From<Ident> for ImportItem
Auto Trait Implementations§
impl Freeze for ImportItem
impl RefUnwindSafe for ImportItem
impl Send for ImportItem
impl Sync for ImportItem
impl Unpin for ImportItem
impl UnwindSafe for ImportItem
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