Enum cargo_toml::Dependency
source · [−]pub enum Dependency {
Simple(String),
Detailed(DependencyDetail),
Inherited(InheritedDependencyDetail),
}
Variants
Simple(String)
Detailed(DependencyDetail)
Inherited(InheritedDependencyDetail)
Implementations
sourceimpl Dependency
impl Dependency
pub fn detail(&self) -> Option<&DependencyDetail>
pub fn req(&self) -> &str
pub fn req_features(&self) -> &[String]
pub fn optional(&self) -> bool
pub fn package(&self) -> Option<&str>
pub fn git(&self) -> Option<&str>
pub fn git_rev(&self) -> Option<&str>
pub fn is_crates_io(&self) -> bool
Trait Implementations
sourceimpl Clone for Dependency
impl Clone for Dependency
sourcefn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Dependency
impl Debug for Dependency
sourceimpl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Dependency> for Dependency
impl PartialEq<Dependency> for Dependency
sourcefn eq(&self, other: &Dependency) -> bool
fn eq(&self, other: &Dependency) -> bool
sourceimpl Serialize for Dependency
impl Serialize for Dependency
impl Eq for Dependency
impl StructuralEq for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more