Struct rustsec::advisory::affected::FunctionPath
source · pub struct FunctionPath(_);
Expand description
Canonical Rust Paths (sans parameters) to vulnerable types and/or functions affected by a particular advisory. https://doc.rust-lang.org/reference/paths.html#canonical-paths
Implementations§
source§impl FunctionPath
impl FunctionPath
sourcepub fn crate_name(&self) -> &str
pub fn crate_name(&self) -> &str
Get the crate name for this path
sourcepub fn into_vec(self) -> Vec<Identifier>
pub fn into_vec(self) -> Vec<Identifier>
Convert this path into an owned vector of Identifier
s
sourcepub fn iter(&self) -> Iter<'_, Identifier>
pub fn iter(&self) -> Iter<'_, Identifier>
Iterate over the segments of this path
sourcepub fn segments(&self) -> &[Identifier]
pub fn segments(&self) -> &[Identifier]
Borrow the segments of this path
Trait Implementations§
source§impl Clone for FunctionPath
impl Clone for FunctionPath
source§fn clone(&self) -> FunctionPath
fn clone(&self) -> FunctionPath
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 FunctionPath
impl Debug for FunctionPath
source§impl<'de> Deserialize<'de> for FunctionPath
impl<'de> Deserialize<'de> for FunctionPath
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 FunctionPath
impl Display for FunctionPath
source§impl FromStr for FunctionPath
impl FromStr for FunctionPath
source§impl Hash for FunctionPath
impl Hash for FunctionPath
source§impl Ord for FunctionPath
impl Ord for FunctionPath
source§fn cmp(&self, other: &FunctionPath) -> Ordering
fn cmp(&self, other: &FunctionPath) -> 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<FunctionPath> for FunctionPath
impl PartialEq<FunctionPath> for FunctionPath
source§fn eq(&self, other: &FunctionPath) -> bool
fn eq(&self, other: &FunctionPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FunctionPath> for FunctionPath
impl PartialOrd<FunctionPath> for FunctionPath
source§fn partial_cmp(&self, other: &FunctionPath) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionPath) -> 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 FunctionPath
impl Serialize for FunctionPath
impl Eq for FunctionPath
impl StructuralEq for FunctionPath
impl StructuralPartialEq for FunctionPath
Auto Trait Implementations§
impl RefUnwindSafe for FunctionPath
impl Send for FunctionPath
impl Sync for FunctionPath
impl Unpin for FunctionPath
impl UnwindSafe for FunctionPath
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.