Struct reedline::PromptHistorySearch
source · [−]pub struct PromptHistorySearch {
pub status: PromptHistorySearchStatus,
pub term: String,
}
Expand description
A representation of the history search
Fields
status: PromptHistorySearchStatus
The status of the search
term: String
The search term used during the search
Implementations
sourceimpl PromptHistorySearch
impl PromptHistorySearch
sourcepub fn new(status: PromptHistorySearchStatus, search_term: String) -> Self
pub fn new(status: PromptHistorySearchStatus, search_term: String) -> Self
A constructor to create a history search
Auto Trait Implementations
impl RefUnwindSafe for PromptHistorySearch
impl Send for PromptHistorySearch
impl Sync for PromptHistorySearch
impl Unpin for PromptHistorySearch
impl UnwindSafe for PromptHistorySearch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more