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§
Trait Implementations§
Source§impl<'a, K: Keyword> ItemResult<K> for Result<Item<'a, K>>
impl<'a, K: Keyword> ItemResult<K> for Result<Item<'a, K>>
Source§fn is_ok_with_annotation(&self) -> bool
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
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
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
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
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
fn is_ok_with_kwd(&self, k: K) -> bool
Return true if this is an ok result with the keyword ‘k’