pub enum ImportSpec<'s> {
File(&'s str),
Registry {
path: &'s str,
version: &'s str,
},
}Variants§
File(&'s str)
Registry
version — as written in the source, with a v prefix (a range: v1, v1.2, or exact v1.2.3).
Trait Implementations§
Source§impl<'s> Clone for ImportSpec<'s>
impl<'s> Clone for ImportSpec<'s>
Source§fn clone(&self) -> ImportSpec<'s>
fn clone(&self) -> ImportSpec<'s>
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 moreimpl<'s> Copy for ImportSpec<'s>
Auto Trait Implementations§
impl<'s> Freeze for ImportSpec<'s>
impl<'s> RefUnwindSafe for ImportSpec<'s>
impl<'s> Send for ImportSpec<'s>
impl<'s> Sync for ImportSpec<'s>
impl<'s> Unpin for ImportSpec<'s>
impl<'s> UnsafeUnpin for ImportSpec<'s>
impl<'s> UnwindSafe for ImportSpec<'s>
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