impl_byteable

Macro impl_byteable 

Source
macro_rules! impl_byteable {
    ($type:ty) => { ... };
}
Expand description

Macro to implement the Byteable trait for types.

This macro generates a Byteable implementation using std::mem::transmute to convert between the type and its byte array representation.

ยงSafety

The implementation assumes the type has #[repr(C, packed)] or similar to ensure a consistent memory layout for safe transmutation.