pub struct LastSearch {
pub pattern: String,
pub direction: SearchDirection,
}Expand description
VM.3d-2: the last completed / / ? / * / # search, which is all n
and N need to repeat it. Moved here from the host (which re-exports the
name, so no call site moved) for the reason LastFind was: n is a
motion now, and the state it repeats has to reach the grammar.
Fields§
§pattern: StringThe pattern as the user typed it (regex syntax, compiled with
fancy-regex).
direction: SearchDirectionThe direction the search ran: n repeats it, N reverses it.
Trait Implementations§
Source§impl Clone for LastSearch
impl Clone for LastSearch
Source§fn clone(&self) -> LastSearch
fn clone(&self) -> LastSearch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LastSearch
impl Debug for LastSearch
impl Eq for LastSearch
Source§impl PartialEq for LastSearch
impl PartialEq for LastSearch
impl StructuralPartialEq for LastSearch
Auto Trait Implementations§
impl Freeze for LastSearch
impl RefUnwindSafe for LastSearch
impl Send for LastSearch
impl Sync for LastSearch
impl Unpin for LastSearch
impl UnsafeUnpin for LastSearch
impl UnwindSafe for LastSearch
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.