pub struct Crate { /* private fields */ }
Expand description

A whole crate with all its versions

Implementations

All versions of this crate sorted chronologically by date originally published

Warning: may be yanked or duplicate

The highest version as per semantic versioning specification

Warning: may be pre-release or yanked

Returns crate version with the highest version number according to semver, but excludes pre-release and yanked versions.

0.x.y versions are included.

May return None if the crate has only pre-release or yanked versions.

Crate’s unique registry name. Case-sensitive, mostly.

The last release by date, even if it’s yanked or less than highest version.

See Crate::highest_normal_version

First version ever published. May be yanked.

It is not guaranteed to be the lowest version number.

Parse an index file with all of crate’s versions.

The file must contain at least one version.

Parse crate file from in-memory JSON-lines data

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.