Struct fuzzy_pdf::pdf::PDFContent[][src]

pub struct PDFContent {
    pub file_path: OsString,
    pub content: String,
}
Expand description

Maps a file path to its text content

Fields

file_path: OsStringcontent: String

Trait Implementations

Formats the value using the given formatter. Read more

Returns the file path as the entry to be displayed in the item list

Returns the text contect as the text to be searched on

Using ripgrep internal components, prints a preview of the content that matches the query with a context of 3 lines before and after

Get output text(after accept), default to text() Note that this function is intended to be used by the caller of skim and will not be used by skim. And since skim will return the item back in SkimOutput, if string is not what you want, you could still use downcast to retain the pointer to the original struct. Read more

we could limit the matching ranges of the get_text of the item. providing (start_byte, end_byte) of the range Read more

Tries to read the pdf’s text content using poppler-rs given the file path

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.