pub struct NumberProp<T> { /* private fields */ }
Expand description

Panics

This type of property may cause panic when being added to the properties if the provided min, max or step exceeds c_int.

Implementations

Creates a new integer property with step set to 1.

Creates a new float property with a certain step.

Sets the step of the property.

Sets the range of the property, inclusion and exclustion are calucated based on the current step.

Sets this property as a slider.

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.