pub fn find_first_by_title(&self, title: &str) -> Option<PdfBookmark> {
        let handle = self
            .bindings
            .FPDFBookmark_Find_str(*self.document.get_handle(), title);

        if handle.is_null() {
            println!(
                "find_by_title() got null: {:#?}",
                self.bindings.get_pdfium_last_error()
            );
            None
        } else {
            Some(PdfBookmark::from_pdfium(
                handle,
                None,
                self.document,
                self.bindings,
            ))
        }
    }
/// Returns the first [PdfBookmark] in the containing [PdfDocument] that has a title matching
/// the given string.
///
/// Note that bookmarks are not required to have unique titles, so in theory any number of
/// bookmarks could match a given title. This function only ever returns the first. To return
/// all matches, use [PdfBookmarks::find_all_by_title()].
Returns the first [PdfBookmark] in the containing [PdfDocument] that has a title matching
the given string.

Note that bookmarks are not required to have unique titles, so in theory any number of
bookmarks could match a given title. This function only ever returns the first.
Returns the first [ PdfBookmark ] in the containing [ PdfDocument ] that has a title matching the given string . Note that bookmarks are not required to have unique titles so in theory any number of bookmarks could match a given title . This function only ever returns the first .
pub fn find_first_by_title(&self, title: &str) -> Option<PdfBookmark> {
        let handle = self
            .bindings
            .FPDFBookmark_Find_str(*self.document.get_handle(), title);
        if handle.is_null() {
            println!(
                "find_by_title() got null: {:#?}",
                self.bindings.get_pdfium_last_error()
            );
            None
        } else {
            Some(PdfBookmark::from_pdfium(
                handle,
                None,
                self.document,
                self.bindings,
            ))
        }
    }
pub fn find_first_by_title ( & self , title : & str ) -> Option < PdfBookmark > { let handle = self . bindings . FPDFBookmark_Find_str ( * self . document . get_handle ( ) , title ) ; if handle . is_null ( ) { println ! ( " " self bindings get_pdfium_last_error ( ) ) ; None } else { Some ( PdfBookmark :: from_pdfium ( handle , None , self . document , self . bindings , ) ) } }
Returns the first [PdfBookmark] in the containing [PdfDocument] that has a title matching
the given string.
Returns the first [ PdfBookmark ] in the containing [ PdfDocument ] that has a title matching the given string .
&self
title
&str
&self
title
&str