Trait krates::KrateDetails

source ·
pub trait KrateDetails {
    // Required methods
    fn name(&self) -> &str;
    fn version(&self) -> &Version;
}
Expand description

A trait that can be applied to the type stored in the graph nodes to give additional features on Krates.

Required Methods§

source

fn name(&self) -> &str

The name of the crate

source

fn version(&self) -> &Version

The version of the crate

Implementations on Foreign Types§

source§

impl KrateDetails for Package

source§

fn name(&self) -> &str

source§

fn version(&self) -> &Version

Implementors§