red4ext_rs

Trait ClassKind

Source
pub trait ClassKind<T>: Sealed<T> {
    type NativeType;

    // Required methods
    fn fields(inst: &Self::NativeType) -> &T;
    fn fields_mut(inst: &mut Self::NativeType) -> &mut T;
}
Expand description

A trait for distinguishing between native and scripted classes.

Required Associated Types§

Required Methods§

Source

fn fields(inst: &Self::NativeType) -> &T

Source

fn fields_mut(inst: &mut Self::NativeType) -> &mut T

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§