Trait AsPackage

Source
pub trait AsPackage
where Self: Sized,
{ // Required methods fn try_as_package<'a>(&'a self) -> Result<Cow<'a, RpPackage>>; fn prefix_with(self, prefix: RpPackage) -> Self; }

Required Methods§

Source

fn try_as_package<'a>(&'a self) -> Result<Cow<'a, RpPackage>>

Attempt to treat the current object as a package.

Source

fn prefix_with(self, prefix: RpPackage) -> Self

Attempt to prefix the package.

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§