pub struct FindOptions {
pub match_case: bool,
pub match_whole_word: bool,
pub consecutive: bool,
}Expand description
How a search behaves.
Fields§
§match_case: boolCompare case-sensitively. The default is false (case-insensitive).
match_whole_word: boolReject a match whose neighbours make it part of a longer word.
consecutive: boolStep forward by one character after a match rather than past it, so overlapping matches are all reported.
Trait Implementations§
Source§impl Clone for FindOptions
impl Clone for FindOptions
Source§fn clone(&self) -> FindOptions
fn clone(&self) -> FindOptions
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 moreimpl Copy for FindOptions
Source§impl Debug for FindOptions
impl Debug for FindOptions
Source§impl Default for FindOptions
impl Default for FindOptions
Source§fn default() -> FindOptions
fn default() -> FindOptions
Returns the “default value” for a type. Read more
impl Eq for FindOptions
Source§impl PartialEq for FindOptions
impl PartialEq for FindOptions
impl StructuralPartialEq for FindOptions
Auto Trait Implementations§
impl Freeze for FindOptions
impl RefUnwindSafe for FindOptions
impl Send for FindOptions
impl Sync for FindOptions
impl Unpin for FindOptions
impl UnsafeUnpin for FindOptions
impl UnwindSafe for FindOptions
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