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
Crates
Crates published through crates.io
Rust
Rust core vulnerabilities
Implementations
Trait Implementations
sourceimpl Clone for Collection
impl Clone for Collection
sourcefn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Collection
impl Debug for Collection
sourceimpl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
sourcefn 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
sourceimpl Display for Collection
impl Display for Collection
sourceimpl FromStr for Collection
impl FromStr for Collection
sourceimpl Hash for Collection
impl Hash for Collection
sourceimpl Ord for Collection
impl Ord for Collection
sourcefn cmp(&self, other: &Collection) -> Ordering
fn cmp(&self, other: &Collection) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Collection> for Collection
impl PartialEq<Collection> for Collection
sourcefn eq(&self, other: &Collection) -> bool
fn eq(&self, other: &Collection) -> bool
sourceimpl PartialOrd<Collection> for Collection
impl PartialOrd<Collection> for Collection
sourcefn partial_cmp(&self, other: &Collection) -> Option<Ordering>
fn partial_cmp(&self, other: &Collection) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.