Skip to main content

Decode

Trait Decode 

Source
pub trait Decode: Encode + Sized {
    // Required method
    fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>;
}
Expand description

A Rust type that can be rebuilt from its HLA encoding.

Required Methods§

Source

fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>

Skips the padding the octet boundary requires and decodes one value.

Never panics; never allocates more than a small multiple of the remaining input.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Decode for String

Source§

fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>

Source§

impl<T: Decode, const N: usize> Decode for [T; N]

Source§

fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>

Source§

impl<T: Decode> Decode for Box<T>

Source§

fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>

Source§

impl<T: Decode> Decode for Vec<T>

Source§

fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>

Implementors§

Source§

impl Decode for HLAASCIIchar

Source§

impl Decode for HLAASCIIstring

Source§

impl Decode for HLAattributeHandle

Source§

impl Decode for HLAboolean

Source§

impl Decode for HLAbyte

Source§

impl Decode for HLAdimensionHandle

Source§

impl Decode for HLAfederateHandle

Source§

impl Decode for HLAfloat32BE

Source§

impl Decode for HLAfloat32LE

Source§

impl Decode for HLAfloat64BE

Source§

impl Decode for HLAfloat64LE

Source§

impl Decode for HLAinteger16BE

Source§

impl Decode for HLAinteger16LE

Source§

impl Decode for HLAinteger32BE

Source§

impl Decode for HLAinteger32LE

Source§

impl Decode for HLAinteger64BE

Source§

impl Decode for HLAinteger64LE

Source§

impl Decode for HLAinteractionClassHandle

Source§

impl Decode for HLAlogicalTime

Source§

impl Decode for HLAlogicalTimeInterval

Source§

impl Decode for HLAmessageRetractionHandle

Source§

impl Decode for HLAobjectClassHandle

Source§

impl Decode for HLAobjectInstanceHandle

Source§

impl Decode for HLAoctet

Source§

impl Decode for HLAoctetPairBE

Source§

impl Decode for HLAoctetPairLE

Source§

impl Decode for HLAopaqueData

Source§

impl Decode for HLAparameterHandle

Source§

impl Decode for HLAregionHandle

Source§

impl Decode for HLAtransportationTypeHandle

Source§

impl Decode for HLAunicodeChar

Source§

impl Decode for HLAunicodeString

Source§

impl Decode for HLAunsignedInteger8

Source§

impl Decode for HLAunsignedInteger16BE

Source§

impl Decode for HLAunsignedInteger16LE

Source§

impl Decode for HLAunsignedInteger32BE

Source§

impl Decode for HLAunsignedInteger32LE

Source§

impl Decode for HLAunsignedInteger64BE

Source§

impl Decode for HLAunsignedInteger64LE