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§
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 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