red4ext_rs

Trait 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

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§

Source§

impl IntoRepr for &str

Source§

impl IntoRepr for String

Source§

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

Source§

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

Source§

fn into_repr(self) -> Self::Repr

Implementors§