Trait reproto_core::AsPackage
[−]
[src]
pub trait AsPackage where
Self: Sized, { fn try_as_package(&self) -> Result<&RpPackage>; fn prefix_with(self, prefix: RpPackage) -> Self; }
Required Methods
fn try_as_package(&self) -> Result<&RpPackage>
Attempt to treat the current object as a package.
fn prefix_with(self, prefix: RpPackage) -> Self
Attempt to prefix the package.
Implementors
impl AsPackage for RpPackage
impl AsPackage for RpVersionedPackage