Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, Error>;
Expand description

Alias for the Result type returned by most objects in this module.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<'a, K: Keyword> ItemResult<K> for Result<Item<'a, K>>

Source§

fn is_ok_with_annotation(&self) -> bool

Return true if this is an ok result with an annotation.
Source§

fn is_ok_with_non_annotation(&self) -> bool

Return true if this is an ok result with a non-annotation.
Source§

fn is_ok_with_kwd_in(&self, ks: &[K]) -> bool

Return true if this is an ok result with a keyword in the slice ‘ks’
Source§

fn is_ok_with_kwd_not_in(&self, ks: &[K]) -> bool

Return true if this is an ok result with a keyword not in the slice ‘ks’
Source§

fn is_empty_line(&self) -> bool

Return true if this is an empty-line error.
Source§

fn is_ok_with_kwd(&self, k: K) -> bool

Return true if this is an ok result with the keyword ‘k’