Struct rustyline::history::SearchResult
source · Expand description
History search result
Fields§
§entry: &'a str
history entry
idx: usize
history index
pos: usize
match position in entry
Trait Implementations§
source§impl<'a> Clone for SearchResult<'a>
impl<'a> Clone for SearchResult<'a>
source§fn clone(&self) -> SearchResult<'a>
fn clone(&self) -> SearchResult<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for SearchResult<'a>
impl<'a> Debug for SearchResult<'a>
source§impl<'a> PartialEq<SearchResult<'a>> for SearchResult<'a>
impl<'a> PartialEq<SearchResult<'a>> for SearchResult<'a>
source§fn eq(&self, other: &SearchResult<'a>) -> bool
fn eq(&self, other: &SearchResult<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.