pub struct PromptHistorySearch {
pub status: PromptHistorySearchStatus,
pub term: String,
}Expand description
A representation of the history search
Fields§
§status: PromptHistorySearchStatusThe status of the search
term: StringThe search term used during the search
Implementations§
Source§impl PromptHistorySearch
impl PromptHistorySearch
Sourcepub const fn new(status: PromptHistorySearchStatus, search_term: String) -> Self
pub const fn new(status: PromptHistorySearchStatus, search_term: String) -> Self
A constructor to create a history search
Auto Trait Implementations§
impl Freeze for PromptHistorySearch
impl RefUnwindSafe for PromptHistorySearch
impl Send for PromptHistorySearch
impl Sync for PromptHistorySearch
impl Unpin for PromptHistorySearch
impl UnwindSafe for PromptHistorySearch
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more