pub struct FindQuery {
pub text: String,
pub case_sensitive: bool,
}Expand description
An active find query: a literal substring plus an ASCII case-fold toggle.
PartialEq so the Document surface can no-op an unchanged query without
re-scanning.
Fields§
§text: StringThe literal text to find. Empty means “no matches” (never match-all).
case_sensitive: boolWhen false, a/A fold together. Case folding is ASCII-only.
Trait Implementations§
impl Eq for FindQuery
impl StructuralPartialEq for FindQuery
Auto Trait Implementations§
impl Freeze for FindQuery
impl RefUnwindSafe for FindQuery
impl Send for FindQuery
impl Sync for FindQuery
impl Unpin for FindQuery
impl UnsafeUnpin for FindQuery
impl UnwindSafe for FindQuery
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.