pub enum Source {
Local(PathBuf),
CratesIo(String),
}
Expand description
Where does the crate’s code come from
Variants§
Local(PathBuf)
It is a local path
[dependencies]
dependency = { path = "/local/path" }
CratesIo(String)
It is from crates.io
[dependencies]
dependency = "0.2.0"
Trait Implementations§
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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