pub trait AsPackagewhere
Self: Sized,{
// Required methods
fn try_as_package<'a>(&'a self) -> Result<Cow<'a, RpPackage>>;
fn prefix_with(self, prefix: RpPackage) -> Self;
}
Required Methods§
Sourcefn try_as_package<'a>(&'a self) -> Result<Cow<'a, RpPackage>>
fn try_as_package<'a>(&'a self) -> Result<Cow<'a, RpPackage>>
Attempt to treat the current object as a package.
Sourcefn prefix_with(self, prefix: RpPackage) -> Self
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.