pub struct PeerContext(/* private fields */);Implementations§
Source§impl PeerContext
impl PeerContext
pub fn with(self, name: PackageName, version: PackageVersion) -> Self
pub fn entries(&self) -> &BTreeMap<PackageName, PackageVersion>
Trait Implementations§
Source§impl Clone for PeerContext
impl Clone for PeerContext
Source§fn clone(&self) -> PeerContext
fn clone(&self) -> PeerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerContext
impl Debug for PeerContext
Source§impl Default for PeerContext
impl Default for PeerContext
Source§fn default() -> PeerContext
fn default() -> PeerContext
Returns the “default value” for a type. Read more
Source§impl Display for PeerContext
impl Display for PeerContext
impl Eq for PeerContext
Source§impl Hash for PeerContext
impl Hash for PeerContext
Source§impl Ord for PeerContext
impl Ord for PeerContext
Source§fn cmp(&self, other: &PeerContext) -> Ordering
fn cmp(&self, other: &PeerContext) -> Ordering
1.21.0 (const: unstable) · 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 for PeerContext
impl PartialEq for PeerContext
Source§impl PartialOrd for PeerContext
impl PartialOrd for PeerContext
impl StructuralPartialEq for PeerContext
Auto Trait Implementations§
impl Freeze for PeerContext
impl RefUnwindSafe for PeerContext
impl Send for PeerContext
impl Sync for PeerContext
impl Unpin for PeerContext
impl UnsafeUnpin for PeerContext
impl UnwindSafe for PeerContext
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