pub struct ExampleFileItem {
    pub file_path: PathBuf,
    pub file_stem: String,
}
Expand description

Represents an example file item

Fields

file_path: PathBuf

Absolute file path to the example

file_stem: String

Filename of the example, excluding the file extension

Trait Implementations

The string to be used for matching (without color)

Custom preview content, default to ItemPreview::Global which will use global preview setting(i.e. the command set by preview option) Read more

The content to be displayed on the item list, could contain ANSI properties

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.