Skip to main content

PackageSpecExt

Trait PackageSpecExt 

Source
pub trait PackageSpecExt {
    // Required method
    fn is_preview(&self) -> bool;
}
Expand description

An extension trait for package specifications.

Required Methods§

Source

fn is_preview(&self) -> bool

Returns true if the package spec is in the preview namespace.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PackageSpecExt for VersionlessPackageSpec

Implementors§