Struct cargo_edit::CrateName[][src]

pub struct CrateName<'a>(_);
Expand description

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.

Implementations

Create a new CrateName

Get crate name

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.