Trait red4ext_rs::NativeRepr

source ·
pub unsafe trait NativeRepr {
    const NAME: &'static str;
}
Expand description

A trait for types that can be passed across the FFI boundary to the game engine without any conversion.

§Safety

Implementations of this trait are only valid if the memory representation of Self is idetical to the representation of type with name Self::NAME in-game.

Required Associated Constants§

source

const NAME: &'static str

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NativeRepr for bool

source§

const NAME: &'static str = "Bool"

source§

impl NativeRepr for f32

source§

const NAME: &'static str = "Float"

source§

impl NativeRepr for f64

source§

const NAME: &'static str = "Double"

source§

impl NativeRepr for i8

source§

const NAME: &'static str = "Int8"

source§

impl NativeRepr for i16

source§

const NAME: &'static str = "Int16"

source§

impl NativeRepr for i32

source§

const NAME: &'static str = "Int32"

source§

impl NativeRepr for i64

source§

const NAME: &'static str = "Int64"

source§

impl NativeRepr for u8

source§

const NAME: &'static str = "Uint8"

source§

impl NativeRepr for u16

source§

const NAME: &'static str = "Uint16"

source§

impl NativeRepr for u32

source§

const NAME: &'static str = "Uint32"

source§

impl NativeRepr for u64

source§

const NAME: &'static str = "Uint64"

source§

impl NativeRepr for ()

source§

const NAME: &'static str = "Void"

Implementors§

source§

impl NativeRepr for CName

source§

const NAME: &'static str = "CName"

source§

impl NativeRepr for EntityId

source§

const NAME: &'static str = "entEntityID"

source§

impl NativeRepr for GameInstance

source§

const NAME: &'static str = "ScriptGameInstance"

source§

impl NativeRepr for GameTime

source§

const NAME: &'static str = "GameTime"

source§

impl NativeRepr for ItemId

source§

const NAME: &'static str = "gameItemID"

source§

impl NativeRepr for RedString

source§

const NAME: &'static str = "String"

source§

impl NativeRepr for TweakDbId

source§

const NAME: &'static str = "TweakDBID"

source§

impl NativeRepr for Variant

source§

const NAME: &'static str = "Variant"

source§

impl<'a, A: NativeRepr> NativeRepr for ScriptRef<'a, A>

source§

const NAME: &'static str = _

source§

impl<A: NativeRepr> NativeRepr for RedArray<A>

source§

const NAME: &'static str = _

source§

impl<A: ScriptClass> NativeRepr for Ref<A>

source§

const NAME: &'static str = _

source§

impl<A: ScriptClass> NativeRepr for WeakRef<A>

source§

const NAME: &'static str = _

source§

impl<T: NativeRepr, const N: usize> NativeRepr for StaticArray<T, N>

source§

const NAME: &'static str = _