Variable

Trait Variable 

Source
pub trait Variable {
    const TYPE: VariableType;
}
Expand description

Used to determine the type of a given variable that appears in an argument struct.

Required Associated Constants§

Source

const TYPE: VariableType

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 Variable for bool

Source§

const TYPE: VariableType

Source§

impl Variable for f64

Source§

const TYPE: VariableType

Source§

impl Variable for i32

Source§

const TYPE: VariableType

Source§

impl Variable for str

Source§

const TYPE: VariableType

Source§

impl Variable for String

Source§

const TYPE: VariableType = <str as Variable>::TYPE

Source§

impl Variable for Id

Source§

const TYPE: VariableType

Source§

impl<T> Variable for Cow<'_, T>
where T: ?Sized + Variable + ToOwned,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Option<T>
where T: Variable,

Source§

const TYPE: VariableType

Source§

impl<T> Variable for &T
where T: ?Sized + Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for [T]
where T: Variable,

Source§

const TYPE: VariableType

Source§

impl<T> Variable for Box<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Rc<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Arc<T>
where T: Variable,

Source§

const TYPE: VariableType = T::TYPE

Source§

impl<T> Variable for Vec<T>
where T: Variable,

Source§

const TYPE: VariableType

Implementors§

Source§

impl Variable for InstanceAddress

Source§

const TYPE: VariableType

Source§

impl Variable for Json

Source§

const TYPE: VariableType