[][src]Struct rustsec::advisory::affected::FunctionPath

pub struct FunctionPath(_);

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

Methods

impl FunctionPath[src]

pub fn crate_name(&self) -> &str[src]

Get the crate name for this path

pub fn into_vec(self) -> Vec<Identifier>[src]

Convert this path into an owned vector of Identifiers

pub fn iter(&self) -> Iter<Identifier>[src]

Iterate over the segments of this path

pub fn segments(&self) -> &[Identifier][src]

Borrow the segments of this path

Trait Implementations

impl Clone for FunctionPath[src]

impl Debug for FunctionPath[src]

impl<'de> Deserialize<'de> for FunctionPath[src]

impl Display for FunctionPath[src]

impl Eq for FunctionPath[src]

impl FromStr for FunctionPath[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(path: &str) -> Result<Self, Error>[src]

Parse a canonical, parameter-free path contained in an advisory

impl Hash for FunctionPath[src]

impl Ord for FunctionPath[src]

impl PartialEq<FunctionPath> for FunctionPath[src]

impl PartialOrd<FunctionPath> for FunctionPath[src]

impl Serialize for FunctionPath[src]

impl StructuralEq for FunctionPath[src]

impl StructuralPartialEq for FunctionPath[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.