Struct SearchResult

pub struct SearchResult<'a> { pub entry: Cow<'a, str>, pub idx: usize, pub pos: usize }

History search result

Fields

entry: Cow<'a, str>

history entry

idx: usize

history index

pos: usize

match position in entry

Trait Implementations

impl<'a> Clone for SearchResult<'a>

fn clone(&self) -> SearchResult<'a>

impl<'a> Debug for SearchResult<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a> Eq for SearchResult<'a>

impl<'a> PartialEq for SearchResult<'a>

fn eq(&self, other: &SearchResult<'a>) -> bool

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> UnsafeUnpin for SearchResult<'a>

impl<'a> UnwindSafe for SearchResult<'a>

Blanket Implementations

impl<T> Any for SearchResult<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SearchResult<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SearchResult<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for SearchResult<'a> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for SearchResult<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SearchResult<'a> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for SearchResult<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SearchResult<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SearchResult<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>