pub struct CatalogRef {
pub name: &'static str,
pub hash: CatalogHash,
}Expand description
A catalog: one package’s interfaces.
Two CatalogRefs are equal only when both the names and the hashes are
equal, because two packages with the same contents can have the same hash.
Fields§
§name: &'static strThe package name.
hash: CatalogHashThe catalog hash.
Trait Implementations§
Source§impl Clone for CatalogRef
impl Clone for CatalogRef
impl Copy for CatalogRef
Source§impl Debug for CatalogRef
impl Debug for CatalogRef
impl Eq for CatalogRef
Source§impl Hash for CatalogRef
impl Hash for CatalogRef
Source§impl Ord for CatalogRef
impl Ord for CatalogRef
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CatalogRef
impl PartialEq for CatalogRef
Source§impl PartialOrd for CatalogRef
impl PartialOrd for CatalogRef
impl StructuralPartialEq for CatalogRef
Auto Trait Implementations§
impl Freeze for CatalogRef
impl RefUnwindSafe for CatalogRef
impl Send for CatalogRef
impl Sync for CatalogRef
impl Unpin for CatalogRef
impl UnsafeUnpin for CatalogRef
impl UnwindSafe for CatalogRef
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