Struct rustyline::history::SearchResult
source · pub struct SearchResult<'a> {
pub entry: &'a str,
pub idx: usize,
pub pos: usize,
}
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 for SearchResult<'a>
impl<'a> PartialEq 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 ==
.impl<'a> Eq for SearchResult<'a>
impl<'a> StructuralPartialEq for SearchResult<'a>
Auto Trait Implementations§
impl<'a> Freeze for SearchResult<'a>
impl<'a> RefUnwindSafe for SearchResult<'a>
impl<'a> Send for SearchResult<'a>
impl<'a> Sync for SearchResult<'a>
impl<'a> Unpin for SearchResult<'a>
impl<'a> UnwindSafe for SearchResult<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)