Enum cargo_toml::TomlDependency [−][src]
pub enum TomlDependency { Simple(String), Detailed(TomlDependencyDetail), }
Variants
Simple(String)
Detailed(TomlDependencyDetail)
Methods
impl TomlDependency
[src]
impl TomlDependency
pub fn req(&self) -> &str
[src]
pub fn req(&self) -> &str
pub fn req_features(&self) -> &[String]
[src]
pub fn req_features(&self) -> &[String]
pub fn optional(&self) -> bool
[src]
pub fn optional(&self) -> bool
Trait Implementations
impl Debug for TomlDependency
[src]
impl Debug for TomlDependency
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TomlDependency
[src]
impl Clone for TomlDependency
fn clone(&self) -> TomlDependency
[src]
fn clone(&self) -> TomlDependency
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for TomlDependency
impl Send for TomlDependency
impl Sync for TomlDependency
impl Sync for TomlDependency