AsVariant

Trait AsVariant 

Source
pub trait AsVariant {
    // Required method
    fn as_var<T>(&self) -> Option<&T>
       where T: GodotVariant + 'static;
}
Expand description

Converts a type to a variant godot type

Required Methods§

Source

fn as_var<T>(&self) -> Option<&T>
where T: GodotVariant + 'static,

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.

Implementors§