Struct broot::preview::PreviewState

source ·
pub struct PreviewState {
    pub preview_area: Area,
    /* private fields */
}
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

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.