pub struct PdfSearchOptions { /* private fields */ }Expand description
Configures the search options that should be applied when creating a new PdfPageTextSearch object.
Implementations§
Source§impl PdfSearchOptions
impl PdfSearchOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new PdfSearchOptions object with all settings initialized with their default values.
Sourcepub fn match_case(self, do_match_case: bool) -> Self
pub fn match_case(self, do_match_case: bool) -> Self
Controls whether the search should be limited to results that exactly match the
case of the search target. The default is false.
Sourcepub fn match_whole_word(self, do_match_whole_word: bool) -> Self
pub fn match_whole_word(self, do_match_whole_word: bool) -> Self
Controls whether the search should be limited to results where the search target
is a complete word, surrounded by punctuation or whitespace. The default is false.
Trait Implementations§
Source§impl Clone for PdfSearchOptions
impl Clone for PdfSearchOptions
Source§fn clone(&self) -> PdfSearchOptions
fn clone(&self) -> PdfSearchOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 PdfSearchOptions
impl Debug for PdfSearchOptions
Source§impl Default for PdfSearchOptions
impl Default for PdfSearchOptions
Source§impl PartialEq for PdfSearchOptions
impl PartialEq for PdfSearchOptions
impl Copy for PdfSearchOptions
impl Eq for PdfSearchOptions
impl StructuralPartialEq for PdfSearchOptions
Auto Trait Implementations§
impl Freeze for PdfSearchOptions
impl RefUnwindSafe for PdfSearchOptions
impl Send for PdfSearchOptions
impl Sync for PdfSearchOptions
impl Unpin for PdfSearchOptions
impl UnwindSafe for PdfSearchOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more