Struct cargo_edit::CrateName[][src]

pub struct CrateName<'a>(_);

A crate specifier. This can be a plain name (e.g. docopt), a name and a versionreq (e.g. docopt@^0.8), a URL, or a path.

Methods

impl<'a> CrateName<'a>
[src]

Create a new CrateName

Does this specify a versionreq?

Is this a URI?

If this crate specifier includes a version (e.g. docopt@0.8), extract the name and version.

Will parse this crate name on the assumption that it is a URI.

Trait Implementations

impl<'a> Debug for CrateName<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for CrateName<'a>

impl<'a> Sync for CrateName<'a>