pub enum DependencyEntry {
Workspace,
Path(PathBuf),
Version(String),
}Expand description
Как записать зависимость компонента в Cargo.toml.
Variants§
Workspace
name = { workspace = true, optional = true }
Path(PathBuf)
name = { path = "...", optional = true }
Version(String)
name = { version = "...", optional = true }
Trait Implementations§
Source§impl Clone for DependencyEntry
impl Clone for DependencyEntry
Source§impl Debug for DependencyEntry
impl Debug for DependencyEntry
impl Eq for DependencyEntry
Source§impl PartialEq for DependencyEntry
impl PartialEq for DependencyEntry
impl StructuralPartialEq for DependencyEntry
Auto Trait Implementations§
impl Freeze for DependencyEntry
impl RefUnwindSafe for DependencyEntry
impl Send for DependencyEntry
impl Sync for DependencyEntry
impl Unpin for DependencyEntry
impl UnsafeUnpin for DependencyEntry
impl UnwindSafe for DependencyEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.