Skip to main content

Param

Trait Param 

Source
pub trait Param {
    // Required method
    fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>;
}
Expand description

A type that can be a script variable.

Required Methods§

Source

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

The Inspector field for this value, or None for hidden state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Param for String

Source§

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

Source§

impl Param for bool

Source§

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

Source§

impl Param for f32

Source§

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

Source§

impl Param for i32

Source§

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

Source§

impl Param for u32

Source§

fn field<'a>(&'a mut self, name: &'static str) -> Option<Field<'a>>

Implementors§