rclrs

Trait ParameterVariant

Source
pub trait ParameterVariant:
    Into<ParameterValue>
    + Clone
    + TryFrom<ParameterValue> {
    type Range: Into<ParameterRanges> + Default + Clone;

    // Required method
    fn kind() -> ParameterKind;
}
Expand description

A trait that describes a value that can be converted into a parameter.

Required Associated Types§

Source

type Range: Into<ParameterRanges> + Default + Clone

The type used to describe the range of this parameter.

Required Methods§

Source

fn kind() -> ParameterKind

Returns the ParameterKind of the implemented type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ParameterVariant for bool

Source§

impl ParameterVariant for f64

Source§

impl ParameterVariant for i64

Source§

impl ParameterVariant for Arc<str>

Source§

impl ParameterVariant for Arc<[bool]>

Source§

impl ParameterVariant for Arc<[f64]>

Source§

impl ParameterVariant for Arc<[i64]>

Source§

impl ParameterVariant for Arc<[u8]>

Source§

impl ParameterVariant for Arc<[Arc<str>]>

Implementors§