Struct rustsec::advisory::linter::Linter[][src]

pub struct Linter { /* fields omitted */ }

Lint information about a particular advisory

Implementations

impl Linter[src]

pub fn lint_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Lint the advisory TOML file located at the given path

pub fn lint_string(s: &str) -> Result<Self, Error>[src]

Lint the given advisory data

pub fn advisory(&self) -> &Advisory[src]

Get the parsed advisory

pub fn errors(&self) -> &[Error][src]

Get the errors that occurred during linting

Trait Implementations

impl Debug for Linter[src]

Auto Trait Implementations

impl RefUnwindSafe for Linter

impl Send for Linter

impl Sync for Linter

impl Unpin for Linter

impl UnwindSafe for Linter

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.