Skip to main content

BasicData

Trait BasicData 

Source
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§

Source

type Native: Copy + PartialEq + Debug

The wrapped Rust type.

Required Methods§

Source

fn from_native(value: Self::Native) -> Self

Wraps a native value.

Source

fn to_native(self) -> Self::Native

Unwraps the native value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BasicData for HLAASCIIchar

Source§

impl BasicData for HLAbyte

Source§

impl BasicData for HLAfloat32BE

Source§

impl BasicData for HLAfloat32LE

Source§

impl BasicData for HLAfloat64BE

Source§

impl BasicData for HLAfloat64LE

Source§

impl BasicData for HLAinteger16BE

Source§

impl BasicData for HLAinteger16LE

Source§

impl BasicData for HLAinteger32BE

Source§

impl BasicData for HLAinteger32LE

Source§

impl BasicData for HLAinteger64BE

Source§

impl BasicData for HLAinteger64LE

Source§

impl BasicData for HLAoctet

Source§

impl BasicData for HLAoctetPairBE

Source§

impl BasicData for HLAoctetPairLE

Source§

impl BasicData for HLAunicodeChar

Source§

impl BasicData for HLAunsignedInteger8

Source§

impl BasicData for HLAunsignedInteger16BE

Source§

impl BasicData for HLAunsignedInteger16LE

Source§

impl BasicData for HLAunsignedInteger32BE

Source§

impl BasicData for HLAunsignedInteger32LE

Source§

impl BasicData for HLAunsignedInteger64BE

Source§

impl BasicData for HLAunsignedInteger64LE