Trait red4ext_rs::IntoRepr

source ·
pub trait IntoRepr: Sized {
    type Repr: NativeRepr;

    // Required method
    fn into_repr(self) -> Self::Repr;
}
Expand description

A trait for types that can be converted into a representation that can be passed across the FFI boundary to the game.

Required Associated Types§

Required Methods§

source

fn into_repr(self) -> Self::Repr

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoRepr for &str

§

type Repr = RedString

source§

fn into_repr(self) -> Self::Repr

source§

impl IntoRepr for String

§

type Repr = RedString

source§

fn into_repr(self) -> Self::Repr

source§

impl<A> IntoRepr for Vec<A>
where A: IntoRepr,

§

type Repr = RedArray<<A as IntoRepr>::Repr>

source§

fn into_repr(self) -> Self::Repr

Implementors§