SimpleVar

Trait SimpleVar 

pub trait SimpleVar:
    ToGodot
    + FromGodot
    + Clone { }
Expand description

Simplified way to implement the Var trait, for godot-convertible types.

Implementing this trait will auto-implement Var in a standard way for types supporting ToGodot and FromGodot.

Types implementing this trait will use clone() for the public getter and direct assignment for the public setter, with PubType = Self. This is the standard behavior for most types.

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§

§

impl SimpleVar for bool

§

impl SimpleVar for f32

§

impl SimpleVar for f64

§

impl SimpleVar for i8

§

impl SimpleVar for i16

§

impl SimpleVar for i32

§

impl SimpleVar for i64

§

impl SimpleVar for u8

§

impl SimpleVar for u16

§

impl SimpleVar for u32

Implementors§