pub trait PackInt {
// Required methods
fn size() -> usize;
fn pack_int_to(&self, buffer: &mut [i32]);
}
Expand description
Something that could be packed to i32
buffers
Required Methods§
Sourcefn pack_int_to(&self, buffer: &mut [i32])
fn pack_int_to(&self, buffer: &mut [i32])
Write an object into i32
buffer.
Buffer must be of size greater or equal to object’s one.
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.