pub trait BasicData: Decode + Copy {
type Native: Copy + PartialEq + Debug;
// Required methods
fn from_native(value: Self::Native) -> Self;
fn to_native(self) -> Self::Native;
}Expand description
A basic data representation wrapping one native Rust value (HLAinteger32BE wraps i32).
Required Associated Types§
Required Methods§
Sourcefn from_native(value: Self::Native) -> Self
fn from_native(value: Self::Native) -> Self
Wraps a native value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".