Struct scarb::core::SourceIdInner
source · #[non_exhaustive]pub struct SourceIdInner {
pub url: Url,
pub kind: SourceKind,
pub canonical_url: CanonicalUrl,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: UrlThe source URL.
kind: SourceKindThe source kind.
canonical_url: CanonicalUrlThe canonical URL of this source, used for internal comparison purposes.
Trait Implementations§
source§impl Hash for SourceIdInner
impl Hash for SourceIdInner
source§impl Ord for SourceIdInner
impl Ord for SourceIdInner
source§fn cmp(&self, other: &SourceIdInner) -> Ordering
fn cmp(&self, other: &SourceIdInner) -> 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<SourceIdInner> for SourceIdInner
impl PartialEq<SourceIdInner> for SourceIdInner
source§fn eq(&self, other: &SourceIdInner) -> bool
fn eq(&self, other: &SourceIdInner) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SourceIdInner> for SourceIdInner
impl PartialOrd<SourceIdInner> for SourceIdInner
source§fn partial_cmp(&self, other: &SourceIdInner) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceIdInner) -> 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 SourceIdInner
impl StructuralEq for SourceIdInner
impl StructuralPartialEq for SourceIdInner
Auto Trait Implementations§
impl RefUnwindSafe for SourceIdInner
impl Send for SourceIdInner
impl Sync for SourceIdInner
impl Unpin for SourceIdInner
impl UnwindSafe for SourceIdInner
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
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
§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
Compare self to
key and return true if they are equal.