Enum rustsec::Collection
source · pub enum Collection {
Crates,
Rust,
}
Expand description
Collections of packages (crates
vs rust
).
Advisories are either filed against crates published to https://crates.io
or packages provided by the Rust language itself (e.g. std
, rustdoc
)
Variants§
Implementations§
Trait Implementations§
source§impl Clone for Collection
impl Clone for Collection
source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
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 Collection
impl Debug for Collection
source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Collection
impl Display for Collection
source§impl FromStr for Collection
impl FromStr for Collection
source§impl Hash for Collection
impl Hash for Collection
source§impl Ord for Collection
impl Ord for Collection
source§fn cmp(&self, other: &Collection) -> Ordering
fn cmp(&self, other: &Collection) -> 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<Collection> for Collection
impl PartialEq<Collection> for Collection
source§fn eq(&self, other: &Collection) -> bool
fn eq(&self, other: &Collection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Collection> for Collection
impl PartialOrd<Collection> for Collection
source§fn partial_cmp(&self, other: &Collection) -> Option<Ordering>
fn partial_cmp(&self, other: &Collection) -> 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 Collection
impl Serialize for Collection
impl Copy for Collection
impl Eq for Collection
impl StructuralEq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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.