pub enum ImportSpec {
Only(Vec<Import>),
Hiding(Vec<Import>),
}Expand description
Import specification.
Variants§
Only(Vec<Import>)
Import only the listed items.
Hiding(Vec<Import>)
Import everything except the listed items.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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