Trait kerbalobjects::ToBytes
source · pub trait ToBytes {
// Required method
fn to_bytes(&self, buf: &mut impl WritableBuffer);
}
Expand description
Allows a type to be converted to bytes and appended to a WriteableBuffer
Required Methods§
sourcefn to_bytes(&self, buf: &mut impl WritableBuffer)
fn to_bytes(&self, buf: &mut impl WritableBuffer)
Converts a type into bytes and appends it to the buffer.