Struct broot::preview::PreviewState[][src]

pub struct PreviewState {
    pub preview_area: Area,
    // some fields omitted
}
Expand description

an application state dedicated to previewing files. It’s usually the only state in its panel and is kept when the selection changes (other panels indirectly call set_selected_path).

Fields

preview_area: Area

Implementations

Trait Implementations

do the preview filtering if required and not yet done

build a cmdResult in response to a command being a change of tree options. This may or not be a new state Read more

return the status which should be used when there’s no verb edited

execute the internal with the optional given invocation. Read more

return the flags to display

called on start of on_command

a generic implementation of on_internal which may be called by states when they don’t have a specific behavior to execute Read more

change the state, does no rendering

return a cmdresult asking for the opening of a preview

must return None if the state doesn’t display a file tree

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.