IntoPackageIdent

Trait IntoPackageIdent 

Source
pub trait IntoPackageIdent<'a> {
    // Required method
    fn into_id(self) -> Result<Cow<'a, PackageIdent>>;
}
Expand description

A fallible conversion to Cow<'a, PackageIdent>.

This is used in methods on crate::Client to add flexibility in the argument types.

This usually clones the input, unless you pass it a reference an already constructed PackageIdent, in which case no copying will be performed.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoPackageIdent<'_> for &str

Source§

fn into_id(self) -> Result<Cow<'static, PackageIdent>>

Source§

impl IntoPackageIdent<'_> for String

Source§

fn into_id(self) -> Result<Cow<'static, PackageIdent>>

Implementors§

Source§

impl<'a> IntoPackageIdent<'a> for &'a PackageIdent

Source§

impl<T> IntoPackageIdent<'_> for T
where T: Into<PackageIdent>,