pub enum ImportSpec {
All(String),
Selective(String, Vec<String>),
Hiding(String, Vec<String>),
Renaming(String, Vec<(String, String)>),
}Expand description
Import specification.
Variants§
All(String)
Import everything: import Foo
Selective(String, Vec<String>)
Import specific names: import Foo (bar, baz)
Hiding(String, Vec<String>)
Import hiding names: import Foo hiding (bar)
Renaming(String, Vec<(String, String)>)
Import with renaming: import Foo renaming bar -> baz
Trait Implementations§
Source§impl Clone for ImportSpec
impl Clone for ImportSpec
Source§fn clone(&self) -> ImportSpec
fn clone(&self) -> ImportSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportSpec
impl Debug for ImportSpec
Source§impl PartialEq for ImportSpec
impl PartialEq for ImportSpec
impl StructuralPartialEq for ImportSpec
Auto Trait Implementations§
impl Freeze for ImportSpec
impl RefUnwindSafe for ImportSpec
impl Send for ImportSpec
impl Sync for ImportSpec
impl Unpin for ImportSpec
impl UnsafeUnpin for ImportSpec
impl UnwindSafe for ImportSpec
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