pub enum DependencySource {
Local(PathBuf),
Git {
owner: String,
repo: String,
tag: String,
},
}Variants§
Implementations§
Source§impl DependencySource
impl DependencySource
Sourcepub fn local_path(&self) -> PathBuf
pub fn local_path(&self) -> PathBuf
获取依赖项所对应的本地路径
Trait Implementations§
Source§impl Clone for DependencySource
impl Clone for DependencySource
Auto Trait Implementations§
impl Freeze for DependencySource
impl RefUnwindSafe for DependencySource
impl Send for DependencySource
impl Sync for DependencySource
impl Unpin for DependencySource
impl UnsafeUnpin for DependencySource
impl UnwindSafe for DependencySource
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