pub trait Export: ToVariant {
    type Hint;

    fn export_info(hint: Option<Self::Hint>) -> ExportInfo;
}
Expand description

Trait for exportable types.

Required Associated Types§

source

type Hint

A type-specific hint type that is valid for the type being exported.

If this type shows up as NoHint, a private, uninhabitable type indicating that there are no hints available for the time being, users must use None for properties of this type. This ensures that it will not be a breaking change to add a hint for the type later, since it supports no operations and cannot be named directly in user code.

Required Methods§

source

fn export_info(hint: Option<Self::Hint>) -> ExportInfo

Returns ExportInfo given an optional typed hint.

Implementations on Foreign Types§

source§

impl Export for i8

source§

impl Export for i16

source§

impl Export for i32

source§

impl Export for i64

source§

impl Export for u8

source§

impl Export for u16

source§

impl Export for u32

source§

impl Export for u64

source§

impl Export for f32

source§

impl Export for f64

source§

impl Export for String

source§

impl Export for bool

§

type Hint = NoHint

source§

fn export_info(_hint: Option<Self::Hint>) -> ExportInfo

source§

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

§

type Hint = <T as Export>::Hint

source§

fn export_info(hint: Option<Self::Hint>) -> ExportInfo

source§

impl<K, V> Export for HashMap<K, V>where
    K: Hash + ToVariantEq + ToVariant,
    V: ToVariant,

§

type Hint = NoHint

source§

fn export_info(_hint: Option<Self::Hint>) -> ExportInfo

source§

impl<T> Export for HashSet<T>where
    T: ToVariant,

§

type Hint = NoHint

source§

fn export_info(_hint: Option<Self::Hint>) -> ExportInfo

source§

impl<T> Export for Vec<T>where
    T: ToVariant,

§

type Hint = NoHint

source§

fn export_info(_hint: Option<Self::Hint>) -> ExportInfo

Implementors§

source§

impl Export for Aabb

§

type Hint = NoHint

source§

impl Export for Basis

§

type Hint = NoHint

source§

impl Export for Color

source§

impl Export for Dictionary

§

type Hint = NoHint

source§

impl Export for GodotString

source§

impl Export for NodePath

§

type Hint = NoHint

source§

impl Export for Plane

§

type Hint = NoHint

source§

impl Export for PoolArray<f32>

§

type Hint = NoHint

source§

impl Export for PoolArray<i32>

§

type Hint = NoHint

source§

impl Export for PoolArray<u8>

§

type Hint = NoHint

source§

impl Export for PoolArray<Color>

§

type Hint = NoHint

source§

impl Export for PoolArray<GodotString>

§

type Hint = NoHint

source§

impl Export for PoolArray<Vector2>

§

type Hint = NoHint

source§

impl Export for PoolArray<Vector3>

§

type Hint = NoHint

source§

impl Export for Quat

§

type Hint = NoHint

source§

impl Export for Rect2

§

type Hint = NoHint

source§

impl Export for Rid

§

type Hint = NoHint

source§

impl Export for Transform2D

§

type Hint = NoHint

source§

impl Export for Transform

§

type Hint = NoHint

source§

impl Export for VariantArray<Shared>

source§

impl Export for Vector2

§

type Hint = NoHint

source§

impl Export for Vector3

§

type Hint = NoHint

source§

impl<T> Export for Instance<T, Shared>where
    T: NativeClass,
    Instance<T, Shared>: ToVariant,

§

type Hint = NoHint

source§

impl<T> Export for Ref<T, Shared>where
    T: GodotObject,

§

type Hint = NoHint