[][src]Struct marks::result::SearchResult

pub struct SearchResult<'a> {
    pub score: i64,
    pub line: usize,
    pub file_path: String,
    pub headers: Vec<Header<'a>>,
    pub content: String,
    pub args: &'a Args,
}

Fields

score: i64

Score.

line: usize

Line number.

file_path: String

In which file?

headers: Vec<Header<'a>>

List of headers that this belongs to.

content: String

Full line content itself.

args: &'a Args

Implementations

impl<'a> SearchResult<'a>[src]

pub fn print(&self)[src]

Trait Implementations

impl<'a> Debug for SearchResult<'a>[src]

impl<'_> Display for SearchResult<'_>[src]

Format SearchResult to print it out into

Auto Trait Implementations

impl<'a> RefUnwindSafe for SearchResult<'a>[src]

impl<'a> Send for SearchResult<'a>[src]

impl<'a> Sync for SearchResult<'a>[src]

impl<'a> Unpin for SearchResult<'a>[src]

impl<'a> UnwindSafe for SearchResult<'a>[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.