Struct forc_pkg::SourceRegistry
source · pub struct SourceRegistry {
pub version: Version,
}
Expand description
A package from the official registry.
Fields§
§version: Version
The base version specified for the package.
Trait Implementations§
source§impl Clone for SourceRegistry
impl Clone for SourceRegistry
source§fn clone(&self) -> SourceRegistry
fn clone(&self) -> SourceRegistry
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 SourceRegistry
impl Debug for SourceRegistry
source§impl<'de> Deserialize<'de> for SourceRegistry
impl<'de> Deserialize<'de> for SourceRegistry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SourceRegistry
impl Hash for SourceRegistry
source§impl Ord for SourceRegistry
impl Ord for SourceRegistry
source§fn cmp(&self, other: &SourceRegistry) -> Ordering
fn cmp(&self, other: &SourceRegistry) -> 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<SourceRegistry> for SourceRegistry
impl PartialEq<SourceRegistry> for SourceRegistry
source§fn eq(&self, other: &SourceRegistry) -> bool
fn eq(&self, other: &SourceRegistry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SourceRegistry> for SourceRegistry
impl PartialOrd<SourceRegistry> for SourceRegistry
source§fn partial_cmp(&self, other: &SourceRegistry) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceRegistry) -> 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 moresource§impl Serialize for SourceRegistry
impl Serialize for SourceRegistry
impl Eq for SourceRegistry
impl StructuralEq for SourceRegistry
impl StructuralPartialEq for SourceRegistry
Auto Trait Implementations§
impl RefUnwindSafe for SourceRegistry
impl Send for SourceRegistry
impl Sync for SourceRegistry
impl Unpin for SourceRegistry
impl UnwindSafe for SourceRegistry
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more