pub struct PackageReqReference {
pub req: PackageReq,
pub sub_path: Option<PackageSubPath>,
}
Expand description
A reference to a package’s name, version constraint, and potential sub path.
This contains all the information found in a package specifier other than what kind of package specifier it was.
Fields§
§req: PackageReq
§sub_path: Option<PackageSubPath>
Implementations§
Source§impl PackageReqReference
impl PackageReqReference
pub fn to_string(&self) -> String
pub fn to_custom_string<TString: StringType>(&self) -> TString
Trait Implementations§
Source§impl Clone for PackageReqReference
impl Clone for PackageReqReference
Source§fn clone(&self) -> PackageReqReference
fn clone(&self) -> PackageReqReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageReqReference
impl Debug for PackageReqReference
Source§impl Display for PackageReqReference
impl Display for PackageReqReference
Source§impl Hash for PackageReqReference
impl Hash for PackageReqReference
Source§impl PartialEq for PackageReqReference
impl PartialEq for PackageReqReference
Source§impl<'a> StringAppendable<'a> for &'a PackageReqReference
impl<'a> StringAppendable<'a> for &'a PackageReqReference
fn append_to_builder<TString: StringType>( self, builder: &mut StringBuilder<'a, TString>, )
impl Eq for PackageReqReference
impl StructuralPartialEq for PackageReqReference
Auto Trait Implementations§
impl Freeze for PackageReqReference
impl RefUnwindSafe for PackageReqReference
impl Send for PackageReqReference
impl Sync for PackageReqReference
impl Unpin for PackageReqReference
impl UnwindSafe for PackageReqReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more