pub struct PathProp { /* private fields */ }
Expand description

Adds a ‘path’ property. Can be a directory or a file.

If target is a file path, the filters should be this format, separated by double semi-colens, and extensions separated by space:

“Example types 1 and 2 (*.ex1 .ex2);;Example type 3 (.ex3)”

Arguments

  • props: Properties object
  • name: Settings name
  • description: Description (display name) of the property
  • type: Type of path (directory or file)
  • filter: If type is a file path, then describes the file filter that the user can browse. Items are separated via double semi-colens. If multiple file types in a filter, separate with space.

Implementations

Trait Implementations

Callback to add this property to a obs_properties_t. 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 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.