pubgrub::package

Trait Package

Source
pub trait Package:
    Clone
    + Eq
    + Hash
    + Debug
    + Display { }
Expand description

Trait for identifying packages. Automatically implemented for types already implementing Clone + Eq + Hash + Debug + Display.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Clone + Eq + Hash + Debug + Display> Package for T

Automatically implement the Package trait for any type that already implement Clone + Eq + Hash + Debug + Display.