Struct mcvm_pkg::PkgRequest
source · pub struct PkgRequest {
pub source: PkgRequestSource,
pub name: String,
}Expand description
Used to store a request for a package that will be fulfilled later
Fields§
§source: PkgRequestSource§name: StringImplementations§
source§impl PkgRequest
impl PkgRequest
pub fn new(name: &str, source: PkgRequestSource) -> Self
sourcepub fn debug_sources(&self, list: String) -> String
pub fn debug_sources(&self, list: String) -> String
Create a dependency list for debugging. Recursive, so call with an empty string
Trait Implementations§
source§impl Clone for PkgRequest
impl Clone for PkgRequest
source§fn clone(&self) -> PkgRequest
fn clone(&self) -> PkgRequest
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 PkgRequest
impl Debug for PkgRequest
source§impl Display for PkgRequest
impl Display for PkgRequest
source§impl Hash for PkgRequest
impl Hash for PkgRequest
source§impl Ord for PkgRequest
impl Ord for PkgRequest
source§fn cmp(&self, other: &PkgRequest) -> Ordering
fn cmp(&self, other: &PkgRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PkgRequest> for PkgRequest
impl PartialEq<PkgRequest> for PkgRequest
source§impl PartialOrd<PkgRequest> for PkgRequest
impl PartialOrd<PkgRequest> for PkgRequest
source§fn partial_cmp(&self, other: &PkgRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &PkgRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for PkgRequest
Auto Trait Implementations§
impl RefUnwindSafe for PkgRequest
impl Send for PkgRequest
impl Sync for PkgRequest
impl Unpin for PkgRequest
impl UnwindSafe for PkgRequest
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