Struct cargo::core::package_id::PackageId [] [src]

pub struct PackageId {
    // some fields omitted
}

Identifier for a specific version of a package in a specific source.

Methods

impl PackageId

fn new<T: ToSemver>(name: &str, version: T, sid: &SourceId) -> CargoResult<PackageId>

fn name(&self) -> &str

fn version(&self) -> &Version

fn source_id(&self) -> &SourceId

fn generate_metadata(&self, source_root: &Path) -> Metadata

fn with_precise(&self, precise: Option<String>) -> PackageId

Trait Implementations

impl Encodable for PackageId

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl Decodable for PackageId

fn decode<D: Decoder>(d: &mut D) -> Result<PackageId, D::Error>

impl Hash for PackageId

fn hash<S: Hasher>(&self, state: &mut S)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for PackageId

fn eq(&self, other: &PackageId) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl PartialOrd for PackageId

fn partial_cmp(&self, other: &PackageId) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

impl Eq for PackageId

impl Ord for PackageId

fn cmp(&self, other: &PackageId) -> Ordering

impl Display for PackageId

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for PackageId

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for PackageId

fn clone(&self) -> PackageId

1.0.0fn clone_from(&mut self, source: &Self)