pub struct PdfDocumentFindStream { /* private fields */ }Available on crate feature
async only.Expand description
Async stream of PDFDocument find notifications and match snapshots.
Implementations§
Source§impl PdfDocumentFindStream
impl PdfDocumentFindStream
Sourcepub fn find_string(
document: &PdfDocument,
needle: &str,
options: PdfDocumentFindOptions,
capacity: usize,
) -> Result<Self>
pub fn find_string( document: &PdfDocument, needle: &str, options: PdfDocumentFindOptions, capacity: usize, ) -> Result<Self>
Start an async document search.
Sourcepub const fn next(&self) -> NextItem<'_, PdfDocumentFindEvent>
pub const fn next(&self) -> NextItem<'_, PdfDocumentFindEvent>
Await the next find event.
Sourcepub fn try_next(&self) -> Option<PdfDocumentFindEvent>
pub fn try_next(&self) -> Option<PdfDocumentFindEvent>
Return the next buffered event without waiting.
Sourcepub fn buffered_count(&self) -> usize
pub fn buffered_count(&self) -> usize
Return the number of buffered events.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfDocumentFindStream
impl !RefUnwindSafe for PdfDocumentFindStream
impl Send for PdfDocumentFindStream
impl Sync for PdfDocumentFindStream
impl Unpin for PdfDocumentFindStream
impl UnsafeUnpin for PdfDocumentFindStream
impl !UnwindSafe for PdfDocumentFindStream
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